is it possible to configure sendmail to defer mails when vpn is off,
and send them when vpn goes up?
I am rather new to sendmail so please forgive vague question.
There is computer.
This computer sometimes is connected via vpn to work network.
When computer is connected to work network it can resolves hosts in
internal domain (say "*.kjonca")
But when is not connected via vpn to work network this domain is not resolvable, i.e. alfa.kjonca return NXDOMAIN.
Sometimes this laptop has to send mails to other host, and here is a
problem.
When is disconnected from vpn I immediately got
30N7Ip4W023613: DSN: Host unknown (Name server: alfa.kjonca: host not found)
is it possible to configure sendmail to defer mails when vpn is off, and
send them when vpn goes up?
I tried to search, and found some pages, but TBH they are rather not understandable to me.
Any hint? Point to doc?
Kamil Joñca <kjonca@poczta.onet.pl> wrote:
I am rather new to sendmail so please forgive vague question.
There is computer.
This computer sometimes is connected via vpn to work network.
When computer is connected to work network it can resolves hosts in
internal domain (say "*.kjonca")
But when is not connected via vpn to work network this domain is not
resolvable, i.e. alfa.kjonca return NXDOMAIN.
Sometimes this laptop has to send mails to other host, and here is a
problem.
When is disconnected from vpn I immediately got
30N7Ip4W023613: DSN: Host unknown (Name server: alfa.kjonca: host not found) >>
is it possible to configure sendmail to defer mails when vpn is off, and
send them when vpn goes up?
I tried to search, and found some pages, but TBH they are rather not
understandable to me.
Any hint? Point to doc?
Which soft/server do you use as DNS resolver on the computer?
IMHO It is worth to _try_ fix DNS replies in initial fix attempts.
I suspect DNS resolver switching between "normal internet" and
"VPN internet" set of nameservers in /etc/resolv.conf
Andrzej Adam Filip <anfi@onet.eu> writes:
I suspect DNS resolver switching between "normal internet" and
"VPN internet" set of nameservers in /etc/resolv.conf
DNS is provided by dnsmasq + bunch of scripts controlled by me.
I of course change them but, this is unintuitive for me.
I would expect that sendmail can deal with such problem.
I would expect that sendmail can deal with such problem.
But when is not connected via vpn to work network this domain is not resolvable, i.e. alfa.kjonca return NXDOMAIN.
30N7Ip4W023613: DSN: Host unknown (Name server: alfa.kjonca: host not found)
Kamil Joñca wrote:
But when is not connected via vpn to work network this domain is not
resolvable, i.e. alfa.kjonca return NXDOMAIN.
30N7Ip4W023613: DSN: Host unknown (Name server: alfa.kjonca: host not found)
What are you doing to trigger this errror?
Please provide all log entries for 30N7Ip4W023613
Does this happen when you are trying to send an e-mail to alfa.kjonca?
Or is alfa.kjonca the name of your server?
In the former case you could
define(`confDELIVERY_MODE', `q')
You might want to add
LOCAL_CONFIG
CPkjonca
to your mc file to indicate that this domain is valid.
define(`confDELIVERY_MODE', `q')
(probably I need to setup some test environment which can take
Kamil Joñca wrote:
define(`confDELIVERY_MODE', `q')
Make that
define(`confDELIVERY_MODE', `d')
4.7. Delivery Mode
d defer delivery attempts (don't deliver)
Mode "d" is identical to mode "q" except
that it also prevents lookups in maps including the -D
flag from working during the initial queue phase; it
is intended for ``dial on demand'' sites where DNS
lookups might cost real money. Some simple error mes-
sages (e.g., host unknown during the SMTP protocol)
will be delayed using this mode.
(probably I need to setup some test environment which can take
That's a good plan.
BTW: what do you want to happen with mails which are being
sent to other domains while your VPN is down?
With this kind of setup all mails wll be "deferred".
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 403 |
Nodes: | 16 (2 / 14) |
Uptime: | 112:32:02 |
Calls: | 8,465 |
Calls today: | 2 |
Files: | 13,181 |
Messages: | 5,910,008 |