Here is my output for postconf -n:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
home_mailbox = Maildir/
inet_interfaces = all
inet_protocols = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
milter_default_action = accept
milter_protocol = 2
mydestination = $myhostname, mail.mydomain.com, mydomain.com, Mydomain, localhost.localdomain, localhost
myhostname = mail.mydomain.com
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
virtual_alias_maps = hash:/etc/postfix/virtual
I’m able to send out email to Gmail, etc., without a hitch. But when I try sending an email from my Gmail to my server, it doesn’t work. I don’t get any messages on /var/log/mail.log so I’m not sure what’s going on.
Thanks!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Hi, I have the same problem, How you solved?
0
Add email addresses to /etc/postfix/virtual mylocalusername@mydomain.com mylocalusername mylocalusername2@mydomain.com mylocalusernam2
Then run postmap /etc/postfix/virtual
Un-comment the line that reads the following in main.cf.
virtual_alias_maps = hash:/etc/postfix/virtual
Restart postfix
systemctl restart postfix
Also make sure you server is listening on port 25 for incoming mail. Make sure that the firewall has port 25 open.
Shouldn’t it be delivering to my /Maildir?
Looks like it’s delivering to command: procmail -a “$EXTENSION”