Le 28/07/2021 à 09:36, Matus UHLAR - fantomas a écrit :
this mean that your server is going to send mail to "server.mydomain.com"
and your postfix sees it should deliver domain to itself, but
postfix does
not know how to handle mail for server.mydomain.com
- you have to put "server.mydomain.com" to mydestinations if you want to
handle the mail locally
On 28.07.21 12:28, Jean-François Bachelet wrote:
? but the pflogsumm crontab send its mail using 'mail' (as other
system daemons do when necessary) not postfix for its reports... :
"perl /usr/sbin/pflogsumm -e -d yesterday /var/log/mail.log | mail -s
'Pflogsumm Logwatch for Postfix' root"
the "mail" command may generate different sender domain than postfix.
look at logs.
so aliases should apply and the mail should be sent to my external
personal address.
aliases apply with local delivery, which means the destination domain must
be in $myestination, which is apparently not true.
#mydestination = $myhostname, localhost.$mydomain, localhost
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
and the others mysomethings :
myhostname = mail.example.com
mydomain = example.com <-- look ! as I said below ;)
myorigin = $myhostname
look at mail logs.
postconf: warning: /etc/postfix/main.cf, line 705: overriding
earlier entry: smtpd_recipient_restrictions=permit_mynetworks,
permit_auth_destination, permit_sasl_authenticated, reject
and what's exactly in 'main.cf' around that problematic 705 line :
699 smtpd_recipient_restrictions = permit_mynetworks,
permit_auth_destination, permit_sasl_authenticated, reject
- here you devine smtpd_recipient_restrictions
704 # SMTP Restrictions Defaults + Anti-Spam
705 smtpd_recipient_restrictions = reject_invalid_hostname,
706 reject_unknown_recipient_domain,
707 reject_unauth_destination,
708 reject_rbl_client sbl.spamhaus.org,
709 permit
- here you define smtpd_recipient_restrictions again
'cause it was specified as is in the tuto I've linked in my previous mail.
btwn I've tried to concatenate the two lines in one, putting the
permit stances from line 699 after the line 709
but that don't work either :( perhaps I should have commented out the
line 709 ?
you should comment out the one that's not supposed to be there.
looks like the first one.
Received-SPF: None (DAG4EX1.mxp6.local:
r...@server.example.com does not designate permitted sender hosts)
this is apparently filter (milter or other) issue, unrelated to postfix.
(locally submitted mail should not be subject to SPF scanning.
--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
How does cat play with mouse? cat /dev/mouse