Hallo,
ich habe nun seit einer Woche arch zum ersten mal verwendet. Vorher mal Xubuntu und Gentoo und bin bis jetzt begeistert von der Performance.
Ich bin nun am umstellen von meinem Fileserver auf Arch. Dieser soll mir e-mails schicken über smart werte etc.
Ich habe somit postfix installiert und folgendermaßen konfiguriert (für ein gmx Konto) diese config funktioniert auch, solange ich
von
somemail@gmx.de zu
somemail@gmx.de sende. Sobald ich jedoch eine andere nehme
someothermail@posteo.de kommt diese nicht an (selbst wenn ich gmx Weiterleitung für alle neuen Mail einstelle.
Kann mir jemand sagen wo der Fehler in meiner config ist?
/etc/postfix/main.cf
compatibility_level = 2
queue_directory = /var/spool/postfix
command_directory = /usr/bin
daemon_directory = /usr/lib/postfix/bin
data_directory = /var/lib/postfix
mail_owner = postfix
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/postfix/aliases
alias_database = $alias_maps
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/bin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /etc/postfix
readme_directory = /usr/share/doc/postfix
inet_protocols = ipv4
meta_directory = /etc/postfix
shlib_directory = /usr/lib/postfix
# extra config which was added
relayhost = [mail.gmx.de]:587
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/smtp_passwords
smtp_tls_security_level = encrypt
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
sender_canonical_maps = hash:/etc/postfix/canonical
recipient_canonical_maps = hash:/etc/postfix/canonical_out
Inhalt von /etc/postfix/aliases
# Person who should get root's mail. Don't receive mail as root!
root: someothermail@posteo.net
# Basic system aliases -- these MUST be present
MAILER-DAEMON: postmaster
postmaster: root
# General redirections for pseudo accounts
bin: root
daemon: root
named: root
nobody: root
uucp: root
www: root
ftp-bugs: root
postfix: root
# Put your local aliases here.
# Well-known aliases
manager: root
dumper: root
operator: root
abuse: postmaster
decode: root
Inhalt /etc/postfix/canonical
root@nas.localdomain somemail@gmx.de
Inhalt /etc/postfix/canonical_out
root@nas.localdomain someothermail@posteo.de
Inhalt /etc/postfix/smtp_passwords
[mail.gmx.de]:587 somemail@gmx.de:<somepassword>
testcommand
echo /dev/sda -m root -M test | smartd -c - -q onecheck
Erwartung wäre das es nun nach
someothermail@posteo.de gesendet wird.
Im log sieht meiner Meinung nach auch alles gut aus
journalctl -f -u postfix
Feb 10 21:08:04 nas postfix/postfix-script[5097]: stopping the Postfix mail system
Feb 10 21:08:04 nas postfix/master[30154]: terminating on signal 15
Feb 10 21:08:04 nas systemd[1]: Stopped Postfix Mail Transport Agent.
Feb 10 21:08:04 nas systemd[1]: Starting Postfix Mail Transport Agent...
Feb 10 21:08:05 nas postfix/postfix-script[5183]: starting the Postfix mail system
Feb 10 21:08:05 nas postfix/master[5185]: daemon started -- version 3.3.0, configuration /etc/postfix
Feb 10 21:08:05 nas systemd[1]: Started Postfix Mail Transport Agent.
Feb 10 21:08:15 nas postfix/pickup[5186]: 40E4A280607: uid=0 from=<root>
Feb 10 21:08:15 nas postfix/cleanup[5544]: 40E4A280607: message-id=<20180210210815.40E4A280607@nas.localdomain>
Feb 10 21:08:15 nas postfix/qmgr[5187]: 40E4A280607: from=<somemail@gmx.de>, size=699, nrcpt=1 (queue active)
Feb 10 21:08:15 nas postfix/smtp[5546]: 40E4A280607: to=<someothermail@posteo.de>, orig_to=<root>, relay=mail.gmx.de[212.227.17.168]:587, delay=0.63, delays=0.03/0.04/0.45/0.1, dsn=2.0.0, status=sent (250 Requested mail action okay, completed: id=0MF9WR-1ewFJA21DX-00GGg0)
Feb 10 21:08:15 nas postfix/qmgr[5187]: 40E4A280607: removed