Le 14/09/2017 à 18:08, Benny Pedersen a écrit :

> remove non desired system accounts from local_recipient_maps

My local_recipient_maps has the default value : "proxy:unix:passwd.byname $alias_maps".
http://www.postfix.org/postconf.5.html#local_recipient_maps

And I don't realy want to create a "normal user" whitelist or a "system user" blacklist because the list will probably change if I install a new software or I create a new user.

> remove public domains from mydestination

I need to receive emails for my users with emails like "user@mydestination" but not like "system_account@mydestination".

> why do you possible accept non fqdn emails ?

I think no, why do you say that ?

> are you sure its not localhost ip as sender ?
> logs

Sep 14 17:52:16 XXXXXX postfix/smtpd[1906]: XXXXXXXXXX: client=unknown[211.161.XX.XX] Sep 14 17:52:18 XXXXXX postfix/cleanup[1908]: XXXXXXXXXX: message-id=<xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx...@free.fr> Sep 14 17:52:31 XXXXXX postfix/qmgr[952]: XXXXXXXXXX: from=<usur...@free.fr>, size=128893, nrcpt=1 (queue active) Sep 14 17:52:31 XXXXXX postfix/local[1909]: XXXXXXXXXX: to=<www-data@MYDESTINATION>, relay=local, delay=16, delays=16/0/0/0, dsn=5.2.0, status=bounced (maildir delivery failed: create maildir file /var/www/Maildir/tmp/XXXXXXXXXXXXXXXXXXXX: Permission denied) Sep 14 17:52:31 XXXXXX postfix/bounce[1910]: XXXXXXXXXX: sender non-delivery notification: YYYYYYYYYY
Sep 14 17:52:31 XXXXXX postfix/qmgr[952]: XXXXXXXXXX: removed

Sep 14 17:52:31 XXXXXX postfix/cleanup[1908]: YYYYYYYYYY: message-id=<20170914155231.YYYYYYYYYY@MYDESTINATION> Sep 14 17:52:31 XXXXXX postfix/qmgr[952]: YYYYYYYYYY: from=<>, size=2507, nrcpt=1 (queue active) Sep 14 17:52:31 XXXXXX postfix/smtp[1913]: YYYYYYYYYY: host mx1.free.fr[212.27.48.7] said: 451 too many errors detected from your IP (X.X.X.X), please visit http://postmaster.free.fr/ (in reply to DATA command) Sep 14 17:52:31 XXXXXX postfix/smtp[1913]: YYYYYYYYYY: to=<usur...@free.fr>, relay=mx1.free.fr[212.27.48.6]:25, delay=0.2, delays=0/0/0.19/0, dsn=4.0.0, status=deferred (host mx1.free.fr[212.27.48.6] said: 451 too many errors detected from your IP (X.X.X.X), please visit http://postmaster.free.fr/ (in reply to DATA command))


Is it possible to prevent local delivery for unix system accounts (id below 1000) ?


Msd

Reply via email to