On Fri, Jan 31, 2014 at 09:56:21AM -0800, bensjomic1 wrote:
> content_filter = smtp-amavis:[127.0.0.1]:10024
So unless explicitly overriden by master.cf, your mail is always
sent to amavis on port 10024.
> filter-pipe unix - n n - 10 pipe
> flags=FX user=vmail null_sender=
> argv=/srv/scripts/postmasterFilterScript.sh -f ${sender} -- ${recipient}
You also have a simple filter defined.
> 127.0.0.1:10025 inet n - - - - smtpd
> -o content_filter=filter-pipe:dummy
And the amavis reinjection port sends mail to filter-pipe.
>
> # First domain with SSL
> XXX.XXX.XXX.180:smtp inet n - - - - smtpd
> -o smtpd_proxy_filter=
> -o content_filter=filter-pipe:dummy
As does this SMTP listener.
> # Second domain with SSL
> XXX.XXX.XXX.227:smtp inet n - n - - smtpd
> -o smtpd_proxy_filter=127.0.0.1:10024
While this one uses Amavis as a proxy filter.
> Here are the log lines:
Jan 31 18:49:37 mailserver1 amavis[1366]: (01366-05) Passed CLEAN, LOCAL
[209.85.215.178] [82.72.204.85] <[email protected]> -> <[email protected]>,
Message-ID: <[email protected]>, mail_id: I4jZoVNgJO0E, Hits: -0.7, size:
2024, queued_as: 38EF68036A, 345 ms
Jan 31 18:49:37 mailserver1 postfix/smtpd[4872]: proxy-accept:
END-OF-MESSAGE: 250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as
38EF68036A; from=<[email protected]> to=<[email protected]> proto=ESMTP
helo=<mail-ea0-f178.google.com>
Look's like amavis running as a proxy-filter forwards to the port
10025 MTA. Which then runs the simple filter:
Jan 31 18:49:37 mailserver1 postfix/smtpd[4883]: connect from
localhost[127.0.0.1]
Jan 31 18:49:37 mailserver1 postfix/smtpd[4883]: 38EF68036A:
client=localhost[127.0.0.1]
Jan 31 18:49:37 mailserver1 postfix/cleanup[4884]: 38EF68036A:
message-id=<[email protected]>
Jan 31 18:49:37 mailserver1 postfix/smtpd[4883]: disconnect from
localhost[127.0.0.1]
Jan 31 18:49:37 mailserver1 postfix/qmgr[4864]: 38EF68036A:
from=<[email protected]>, size=2484, nrcpt=1 (queue active)
Jan 31 18:49:37 mailserver1 postfix/pipe[4885]: 38EF68036A:
to=<[email protected]>, relay=filter-pipe, delay=0.04,
delays=0.02/0.01/0/0.02, dsn=2.0.0, status=sent (delivered via filter-pipe
service)
Jan 31 18:49:37 mailserver1 postfix/qmgr[4864]: 38EF68036A: removed
Which re-injects the message into the queue (and content_filter is
not disabled in pickup(8)) and it is filtered via amavis again:
Jan 31 18:49:37 mailserver1 postfix/pickup[4863]: 405E9810EF: uid=1000
from=<[email protected]>
Jan 31 18:49:37 mailserver1 postfix/cleanup[4884]: 405E9810EF:
message-id=<[email protected]>
Jan 31 18:49:37 mailserver1 postfix/qmgr[4864]: 405E9810EF:
from=<[email protected]>, size=2603, nrcpt=1 (queue active)
Jan 31 18:49:37 mailserver1 postfix/smtp[4894]: 405E9810EF:
to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.32,
delays=0.01/0.01/0/0.29, dsn=2.0.0, status=sent (250 2.0.0 from
MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 86CFE8036A)
Jan 31 18:49:37 mailserver1 postfix/qmgr[4864]: 405E9810EF: removed
Round and round we go:
Jan 31 18:49:37 mailserver1 postfix/smtpd[4883]: connect from
localhost[127.0.0.1]
Jan 31 18:49:37 mailserver1 postfix/smtpd[4883]: 86CFE8036A:
client=localhost[127.0.0.1]
Jan 31 18:49:37 mailserver1 postfix/cleanup[4884]: 86CFE8036A:
message-id=<[email protected]>
Jan 31 18:49:37 mailserver1 postfix/smtpd[4883]: disconnect from
localhost[127.0.0.1]
Jan 31 18:49:37 mailserver1 postfix/qmgr[4864]: 86CFE8036A:
from=<[email protected]>, size=3099, nrcpt=1 (queue active)
Jan 31 18:49:37 mailserver1 postfix/pipe[4885]: 86CFE8036A:
to=<[email protected]>, relay=filter-pipe, delay=0.02, delays=0/0/0/0.02,
dsn=2.0.0, status=sent (delivered via filter-pipe service)
Jan 31 18:49:37 mailserver1 postfix/qmgr[4864]: 86CFE8036A: removed
--
Viktor.