Frage

I have in the past followed this guide and successfully forwarded incoming emails. However only recently this has stopped and all the emails are being stored in the respective user accounts.

The server is not blacklisted and no errors are being reported.

Is there anything i can try?

The virtual file is not reporting any errors.

This is the main.cf file:

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no

readme_directory = no

smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = example.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = example.com, localhost
relayhost = 
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

This is an example of my virtual file:

nsw@example.com nsw
nsw personal@email.com
War es hilfreich?

Lösung

If it worked before and the mail stays in the mailbox than there is simply no forwarding done. Assuming you have tried:

sudo service postfix restart

Have you tried checking if your forwarding adress is still correct in:

sudo vi /etc/postfix/virtual

If this checks out te be ok you could also redo:

sudo postmap /etc/postfix/virtual

If this still does not work than you could post your /etc/postfix/main.cf (minus personal information) and the /var/log/mail.info log of your last email attempt.

These last two files show very valuable information for solving problems in postfix.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top