Le 24/06/2021 à 17:04, Matus UHLAR - fantomas a écrit :
On 24.06.21 16:55, Matus UHLAR - fantomas wrote:
relayhost = [mail.'external host']:587
http://www.postfix.org/postconf.5.html#relayhost
and apparently configure SMTP Authentication by using:
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_auth_enable = yes
smtp_sasl_tls_security_options = noanonymous
smtp_tls_security_level=encrypt
and put '[mail.'external host'] user:password'
sorry, this had to be:
[mail.'external host']:587 user:password
(removed apostrophes and added :port)
into /etc/postfix/sasl_passwd
http://www.postfix.org/postconf.5.html#smtp_sasl_password_maps
On 24.06.21 17:40, Jean-François Bachelet wrote:
well with this kind of config I finally get mails to be sent outside
the server to 'customer@anywhere' by the 587 port. that's better.
BTW, the received mail says coming from 'root'@mydomain and not as
expected webmaster@mydomain :(
Whoever submits the mail, is supposed to set the sender. Othwerise, the
sending user is set from active user which is 0==root.
the root = webmaster@mydomain exists in the aliases file so why ?
wxhat to change in where config file to change that ?
aliases map recipients, not senders, see:
http://www.postfix.org/canonical.5.html
then the test mail meant to be sent to webmaster@mydomain is still not
delivered :( error is still webmaster : user don't exists
yes, because the mail is handled locally - your postfix thinks it handles
mail for "mydomain". If "mydomain" is to be handled by remote server, you
must not set it as local.
mails to that address from the postfix server just 'vanishes' I find
it nowhere on the server, nor in root mailbox nor user mailbox nor
/var/spool/ or /var/mail...
don't know where it go
it was dropped as neither recipient, nor the sender (recipient for
non-delivery notifiaction) was deliverable.
Jun 24 17:12:45 amiga postfix/pickup[32154]: 8E5011C80B28: uid=0
from=<root@mydomain>
Jun 24 17:12:45 amiga postfix/cleanup[32161]: 8E5011C80B28:
message-id=<20210624151245.8E5011C80B28@mail.mydomain>
Jun 24 17:12:45 amiga postfix/qmgr[32155]: 8E5011C80B28:
from=<root@mydomain>, size=357, nrcpt=1 (queue active)
Jun 24 17:12:45 amiga postfix/local[32164]: 8E5011C80B28:
to=<webmaster@mydomain>, relay=local, delay=0.14,
delays=0.09/0.01/0/0.05, dsn=5.1.1, status=bounced (unknown user:
"webmaster")
Jun 24 17:12:45 amiga postfix/cleanup[32161]: A77451C80B40:
message-id=<20210624151245.A77451C80B40@mail.mydomain>
Jun 24 17:12:45 amiga postfix/bounce[32165]: 8E5011C80B28: sender
non-delivery notification: A77451C80B40
Jun 24 17:12:45 amiga postfix/qmgr[32155]: A77451C80B40: from=<>,
size=2258, nrcpt=1 (queue active)
Jun 24 17:12:45 amiga postfix/qmgr[32155]: 8E5011C80B28: removed
Jun 24 17:12:45 amiga postfix/local[32164]: A77451C80B40:
to=<webmaster@mydomain>, orig_to=<root@mydomain>, relay=local,
delay=0.07, delays=0.03/0/0/0.03, dsn=5.1.1, status=bounced (unknown
user: "webmaster")
Jun 24 17:12:45 amiga postfix/qmgr[32155]: A77451C80B40: removed
--
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.
BSE = Mad Cow Desease ... BSA = Mad Software Producents Desease