By amorimlucas
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!
Shouldn’t it be delivering to my /Maildir?
Looks like it’s delivering to command: procmail -a “$EXTENSION”
This it my ufw status:
To Action From
-- ------ ----
22 ALLOW Anywhere
80 ALLOW Anywhere
443 ALLOW Anywhere
2375/tcp ALLOW Anywhere
2376/tcp ALLOW Anywhere
OpenSSH ALLOW Anywhere
Nginx Full ALLOW Anywhere
2525/tcp ALLOW Anywhere
Postfix ALLOW Anywhere
22 (v6) ALLOW Anywhere (v6)
80 (v6) ALLOW Anywhere (v6)
443 (v6) ALLOW Anywhere (v6)
2375/tcp (v6) ALLOW Anywhere (v6)
2376/tcp (v6) ALLOW Anywhere (v6)
OpenSSH (v6) ALLOW Anywhere (v6)
Nginx Full (v6) ALLOW Anywhere (v6)
2525/tcp (v6) ALLOW Anywhere (v6)
Postfix (v6) ALLOW Anywhere (v6)
And I just realized that I had set the master.cf file to listen to port 2525 a few days ago. So port 25 wasn’t being listened to. I set it to listen to port 25, and all the pending mail came in through the mail queue. But strangely none of them went into my mailbox. I wonder if SpamAssassin filtered them?
This is what I’m getting in /var/log/mail.log:
... postfix/smtpd[3540]: disconnect from mail-vk0-f53.google.com[209.85.213.53] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7
... postfix/smtpd[3540]: connect from mail-vk0-f68.google.com[209.85.213.68]
... postfix/smtpd[3540]: EB462C6788: client=mail-vk0-f68.google.com[209.85.213.68]
... postfix/cleanup[3545]: EB462C6788: message-id=<43F839B3-E2B2-46C9-853D-4A1607DD0EAB@gmail.com>
... postfix/qmgr[3534]: EB462C6788: from=<myemail@gmail.com>, size=2586, nrcpt=1 (queue active)
... postfix/local[3546]: EB462C6788: to=<user@myserver.com>, orig_to=<info@myserver.com>, relay=local, delay=0.09, delays=0.08/0/0/0.01, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.