Well,
I figured out, that problem is in vacation itself, where is missing
proper control of recipient's address.
In case, the header of original message contains line like:
From: <em...@domain.tld>
vacation encloses the message by "<>", so SMTPD then receives sth like:
RCPT TO: <<em...@domain.tld>>
As a temporary hack, I created little filter each message goes through
before it's handled by vacation itself.
If I have a time, I'll write patch for vacation ....
Cheers
M>
On 11/15/18 3:48 PM, Martin Sukany wrote:
Hi,
I'm using vacation as auto-responder while I'm out of office. I've
been using it by following way:
1) create ~/.vacation.msg contains body of the message
2) init vacation db
$ vacation -i
3) update .forward file to pipe vacation (see below)
Unfortunately starting 6.4, it seems like vacation sends mail with
wrong address format, see output from maillog:
_*(server) ~ # fgrep 342d2aa97860a044 /var/log/maillog*_
Nov 15 15:45:13 server smtpd[80519]: 342d2aa97860a044 smtp connected
address=local host=server.sukany.cz
Nov 15 15:45:13 server smtpd[80519]: 342d2aa97860a044 smtp
failed-command address=local host=server.sukany.cz command="RCPT
TO:<<martin.suk...@zivotjinak.cz>> " result="501 5.1.3: Recipient
address syntax error"
Nov 15 15:45:13 server smtpd[80519]: 342d2aa97860a044 smtp
disconnected address=local host=server.sukany.cz reason=disconnect
My configuration looks like:
smtpd.conf_*
(server) ~ # cat /etc/mail/smtpd.conf*_
pki sukany.cz cert "/etc/ssl/sukany.cz.crt"
pki sukany.cz key "/etc/ssl/private/sukany.cz.key"
listen on lo0 port 25
listen on vio0 port 25 tls-require auth-optional pki sukany.cz
listen on vio0 port 465 smtps auth pki sukany.cz
listen on vio0 port submission tls-require auth pki sukany.cz
# DKIM
listen on lo0 port 10028 tag DKIM
table aliases file:/etc/mail/aliases
action "local" maildir alias <aliases>
action "relay" relay
action "procmail" mda "/usr/local/bin/procmail -f -"
# DKIM
action "relay_dkim" relay host smtp://127.0.0.1:10027
match for local action "local"
match from any for domain "sukany.cz" action "local"
match from any for domain "server.sukany.cz" action "local"
match auth tag DKIM from any for any action "relay"
match tag DKIM from local for any action "relay"
# DKIM
match auth from any for any action "relay_dkim"
match from local for any action "relay_dkim"_*
*_
_*(server) ~ # cat /home/martin/.forward*_
\martin, "|/usr/bin/vacation martin"
Has anyone face the same / similar issue?
Cheers
M>
--
Martin Sukany
UNIX Engineer - Solaris / Linux / OpenBSD L3 specialist
www.sukany.cz