why do you need localhost? is it a Mail Server or MailFilter?

in my case,  it is a Mail Filter. That's why I do NOT expect localhost
to bypass  stuffs.
thanks again for replying ;)

localhost ist just my localhost where mail is originating from.
postfix is running on localhost, amavis-new, apache, logdigest, etc, ...


do you have below line in postfix's main.cf file. pls check...

mynetworks = 127.0.0.0/8
yes, 127.0.0.0/8 is in there .. so is [::1]/128
another IP like 213.133.108.221 DOES
work!
GLAD TO HEAR. my setup is the same.

another good source to look at

http://www.stenoweb.it/en/node/229#toc5
thanks for that link! the first example is exactly what i'm trying to do:

http://www.stenoweb.it/en/node/229#toc0

here's mynetwork from postfix main.cf

mynetworks = 127.0.0.0/8, [::1]/128, [fe80::]/10, 78.46.161.3, [2a01:4f8:c17:30ba::]/64, 78.47.122.10, [2a01:4f8:d13:10c6::]/64, 138.201.91.195, [2a01:4f8:c17:3bec::]/64

here's the one from amavis.conf

@mynetworks = qw( 127.0.0.0/8 [::1]/128 [FE80::]/10 [FEC0::]/10 78.46.161.3 [2a01:4f8:c17:30ba::]/64 78.47.122.10 [2a01:4f8:d13:10c6::]/64 138.201.91.195 [2a01:4f8:c17:3bec::]/64 );

if i send an email via CLI, e.g.

mail -s "mailtest" be...@beckspaced.com

i get the following maillog:

Sep 23 09:26:28 cx20 postfix/pickup[10620]: EF63C1A1A1D: uid=0 from=<root>
Sep 23 09:26:28 cx20 postfix/cleanup[10779]: EF63C1A1A1D: message-id=<20160923072628.ef63c1a1...@mail.beckspaced.com> Sep 23 09:26:29 cx20 postfix/qmgr[10621]: EF63C1A1A1D: from=<r...@beckspaced.com>, size=518, nrcpt=1 (queue active) Sep 23 09:26:29 cx20 postfix/smtpd[10782]: connect from localhost.localdomain[127.0.0.1] Sep 23 09:26:29 cx20 postfix/smtpd[10782]: A70A41A1A36: client=localhost.localdomain[127.0.0.1] Sep 23 09:26:29 cx20 postfix/cleanup[10779]: A70A41A1A36: message-id=<20160923072628.ef63c1a1...@mail.beckspaced.com> Sep 23 09:26:29 cx20 postfix/qmgr[10621]: A70A41A1A36: from=<r...@beckspaced.com>, size=1769, nrcpt=1 (queue active) Sep 23 09:26:29 cx20 amavis[10804]: (10804-01) Passed CLEAN {RelayedInternal}, ORIGINATING <r...@beckspaced.com> -> <be...@beckspaced.com>, Message-ID: <20160923072628.ef63c1a1...@mail.beckspaced.com>, mail_id: hAq5FUd6v1Nl, Hits: -0.001, size: 518, queued_as: A70A41A1A36, dkim_new=dkim:beckspaced.com, 757 ms Sep 23 09:26:29 cx20 postfix/smtp[10780]: EF63C1A1A1D: to=<be...@beckspaced.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.84, delays=0.08/0/0.01/0.76, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as A70A41A1A36)
Sep 23 09:26:29 cx20 postfix/qmgr[10621]: EF63C1A1A1D: removed
Sep 23 09:26:30 cx20 postfix/lmtp[10783]: A70A41A1A36: to=<be...@beckspaced.com>, relay=localhost[127.0.0.1]:24, delay=0.97, delays=0.09/0/0.01/0.88, dsn=2.0.0, status=sent (215 Recipient <be...@beckspaced.com> OK)
Sep 23 09:26:30 cx20 postfix/qmgr[10621]: A70A41A1A36: removed

it gets picked up by postfix, send to the smtpd on localhost and then forwarded to amavis and back to postfix and finally delivered

important thing here is ORIGINATING and Hits: -0.001 ... meaning it does gt checked for spam

if i send an email from another server of mine which is also listed in the mynetworks i get the following maillog:

important thing here is ORIGINATING/MYNETS LOCAL and Hits: -

meaning amavis detects that this email is from MYNETS LOCAL and does not spam check!

so .. from external IP it works. from localhost it does not :(

Sep 23 09:05:38 cx20 postfix/smtpd[10162]: connect from cx40.beckspaced.com[138.201.91.195] Sep 23 09:05:38 cx20 postfix/smtpd[10162]: 3B5C91A1A5A: client=cx40.beckspaced.com[138.201.91.195] Sep 23 09:05:38 cx20 postfix/cleanup[10202]: 3B5C91A1A5A: message-id=<05caa54b9836580cb4f28fc238a97...@kohphanganreviews.com> Sep 23 09:05:38 cx20 postfix/smtpd[10162]: disconnect from cx40.beckspaced.com[138.201.91.195] Sep 23 09:05:38 cx20 postfix/qmgr[9919]: 3B5C91A1A5A: from=<www...@beckspaced.com>, size=1597, nrcpt=2 (queue active) Sep 23 09:05:38 cx20 postfix/smtpd[10162]: connect from cx40.beckspaced.com[2a01:4f8:c17:3bec::2] Sep 23 09:05:38 cx20 postfix/smtpd[10162]: 4D6CA1A1A5E: client=cx40.beckspaced.com[2a01:4f8:c17:3bec::2] Sep 23 09:05:38 cx20 postfix/cleanup[10202]: 4D6CA1A1A5E: message-id=<2042389ca1707397ff9af0639a461...@kohphanganreviews.com> Sep 23 09:05:38 cx20 postfix/qmgr[9919]: 4D6CA1A1A5E: from=<www...@beckspaced.com>, size=1236, nrcpt=1 (queue active) Sep 23 09:05:38 cx20 postfix/smtpd[10162]: disconnect from cx40.beckspaced.com[2a01:4f8:c17:3bec::2] Sep 23 09:05:38 cx20 postfix/smtpd[10208]: sql auxprop plugin using mysql engine Sep 23 09:05:38 cx20 postfix/smtpd[10208]: connect from localhost.localdomain[127.0.0.1] Sep 23 09:05:38 cx20 postfix/smtpd[10208]: 81D1F1A1A5F: client=localhost.localdomain[127.0.0.1] Sep 23 09:05:38 cx20 postfix/cleanup[10202]: 81D1F1A1A5F: message-id=<2042389ca1707397ff9af0639a461...@kohphanganreviews.com> Sep 23 09:05:38 cx20 postfix/smtpd[10209]: sql auxprop plugin using mysql engine Sep 23 09:05:38 cx20 postfix/smtpd[10209]: connect from localhost.localdomain[127.0.0.1] Sep 23 09:05:38 cx20 postfix/smtpd[10209]: 8771B1A1A63: client=localhost.localdomain[127.0.0.1] Sep 23 09:05:38 cx20 postfix/cleanup[10211]: 8771B1A1A63: message-id=<05caa54b9836580cb4f28fc238a97...@kohphanganreviews.com> Sep 23 09:05:38 cx20 postfix/smtpd[10208]: disconnect from localhost.localdomain[127.0.0.1] Sep 23 09:05:38 cx20 postfix/qmgr[9919]: 81D1F1A1A5F: from=<www...@beckspaced.com>, size=2562, nrcpt=1 (queue active) Sep 23 09:05:38 cx20 postfix/qmgr[9919]: 8771B1A1A63: from=<www...@beckspaced.com>, size=2842, nrcpt=2 (queue active) Sep 23 09:05:38 cx20 amavis[9793]: (09793-05) Passed CLEAN {RelayedInternal}, ORIGINATING/MYNETS LOCAL [2a01:4f8:c17:3bec::2]:36031 [2a01:4f8:c17:3bec::2] <www...@beckspaced.com> -> <ralf.flede...@webagentur-wiesentheid.de>, Queue-ID: 4D6CA1A1A5E, Message-ID: <2042389ca1707397ff9af0639a461...@kohphanganreviews.com>, mail_id: hhluEU3rutD2, Hits: -, size: 1255, queued_as: 81D1F1A1A5F, dkim_new=dkim:beckspaced.com, 299 ms Sep 23 09:05:38 cx20 postfix/smtp[10205]: 4D6CA1A1A5E: to=<ralf.flede...@webagentur-wiesentheid.de>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.35, delays=0.04/0.01/0/0.3, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 81D1F1A1A5F)
Sep 23 09:05:38 cx20 postfix/qmgr[9919]: 4D6CA1A1A5E: removed
Sep 23 09:05:38 cx20 postfix/smtpd[10209]: disconnect from localhost.localdomain[127.0.0.1] Sep 23 09:05:38 cx20 amavis[9792]: (09792-05) Passed CLEAN {RelayedInternal}, ORIGINATING/MYNETS LOCAL [138.201.91.195]:41449 [138.201.91.195] <www...@beckspaced.com> -> <be...@beckspaced.com>,<clie...@beckspaced.com>, Queue-ID: 3B5C91A1A5A, Message-ID: <05caa54b9836580cb4f28fc238a97...@kohphanganreviews.com>, mail_id: VAnUSuQFlEyj, Hits: -, size: 1631, queued_as: 8771B1A1A63, dkim_new=dkim:beckspaced.com, 361 ms Sep 23 09:05:38 cx20 postfix/smtp[10204]: 3B5C91A1A5A: to=<be...@beckspaced.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.46, delays=0.05/0.04/0.03/0.34, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 8771B1A1A63) Sep 23 09:05:38 cx20 postfix/smtp[10204]: 3B5C91A1A5A: to=<clie...@beckspaced.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.46, delays=0.05/0.04/0.03/0.34, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 8771B1A1A63)
Sep 23 09:05:38 cx20 postfix/qmgr[9919]: 3B5C91A1A5A: removed
Sep 23 09:05:39 cx20 postfix/lmtp[10212]: 81D1F1A1A5F: to=<ralf.flede...@webagentur-wiesentheid.de>, relay=localhost[127.0.0.1]:24, delay=1.2, delays=0.12/0.01/0.01/1, dsn=2.0.0, status=sent (215 Recipient <ralf.flede...@webagentur-wiesentheid.de> OK)
Sep 23 09:05:39 cx20 postfix/qmgr[9919]: 81D1F1A1A5F: removed
Sep 23 09:05:41 cx20 postfix/lmtp[10213]: 8771B1A1A63: to=<be...@beckspaced.com>, relay=localhost[127.0.0.1]:24, delay=2.5, delays=0.11/0.02/0.01/2.4, dsn=2.0.0, status=sent (215 Recipient <be...@beckspaced.com> OK) Sep 23 09:05:41 cx20 postfix/lmtp[10213]: 8771B1A1A63: to=<clie...@beckspaced.com>, relay=localhost[127.0.0.1]:24, delay=2.5, delays=0.11/0.02/0.01/2.4, dsn=2.0.0, status=sent (215 Recipient <clie...@beckspaced.com> OK)
Sep 23 09:05:41 cx20 postfix/qmgr[9919]: 8771B1A1A63: removed


Reply via email to