Hi I installed postfix and dovecot and now I am fixing the issues. Most of them I was able to sort out with reading through to tons of websites. But one (hopefully) last issue is still open: All incoming mail are in the folder /var/spool/mail/root. I guess they should be delivered to /var/spool/mail/vmail Any idea what is causing this issue and what I should check to resolve it? Thanks in advance for your help!
The tutorial I followed is on nazimkuet. wordpress.com/2015/08/26/setup-mail-server-on-centos-7-email-with-postfix-dovecot-and-mariadb-on-centos-7/ (remove the space after nazimkuet, I had to add it because I am currently not allowed to post links, sorry) Edit: If I send a mail from the local machine with mailx, I reiceive the mail on another client with Thunderbird. If I send the mail from external, after some time I get a "Delivery Status Notification (Delay)" and 2 days later a "Delivery Status Notification (faied)" mail.
Is postfix listening on the external network interface? Did you open port 25 in the CentOS firewall? Did you check /var/log/maillog for errors?
Thank you taking you time. I will try to answer your questions as good as I can: If I do a netstat -tlnap | grep :25, I get the following output: tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 27438/master Then I did a ls -l /proc/27438 | grep exe and it shows: lrwxrwxrwx 1 root root 0 Dec 20 00:50 exe -> /usr/libexec/postfix/master Yes, port 25 is open: firewall-cmd --list-ports --permanent 110/tcp 443/tcp 80/tcp 465/tcp 587/tcp 25/tcp 143/tcp 995/tcp 993/tcp Yes, I checked the logs, but what I don't understand is the sender non-delivery notification. But else there aren't any error or reject messages. Dec 20 03:00:02 phrosgone postfix/cleanup[27537]: 74006208F5: message-id=<[email protected]> Dec 20 03:00:02 phrosgone postfix/bounce[27547]: B3FB1208F2: sender non-delivery notification: 74006208F5 Dec 20 03:00:02 phrosgone postfix/qmgr[27440]: 74006208F5: from=<>, size=2851, nrcpt=1 (queue active) Dec 20 03:00:02 phrosgone postfix/qmgr[27440]: B3FB1208F2: removed Dec 20 03:00:03 phrosgone postfix/smtp[27546]: 74006208F5: to=<[email protected]>, relay=none, delay=0.16, delays=0.05/0/0.11/0, dsn=5.4.6, status=bounced (mail for myhost.mydomain.ch loops back to myself) Dec 20 03:00:03 phrosgone postfix/qmgr[27440]: 74006208F5: removed
I did that actually few minutes ago. I added: mydestination = mail.rastoder.ch, localhost.rastoder.ch, localhost, rastoder.ch Then I have restarted postfix and sent a testmail from a hotmail account and checked with Thunderbird if I have received something. The maillog shows only the connection established from Thunderbird, but no indications about an incoming mail.