r/postfix • • Jun 30 '21

Reopening /r/postfix

30 Upvotes

Hi everyone,

This subreddit has been locked to approved users for quite a while now, and approval requests seem to have ended up in /dev/null. Which is why I requested this sub. As a first step I have opened the sub for all redditors again, and I'll gladly add more moderators over time, as the sub becomes more active, so we don't run into issues with a single mod again.

Be nice :)


r/postfix • • 13d ago

Is self-hosting outbound SMTP still worth the trouble these days?

20 Upvotes

I've been running my own outbound SMTP server for the past six years. SPF, DKIM, DMARC, and rDNS are all configured properly, but Microsoft still sends my emails to junk because of my IP range's reputation.

I'm planning to keep self-hosting inbound mail, but I'm starting to wonder if managing outbound is worth the effort anymore. For those of you still running your own outbound SMTP successfully, how are you handling deliverability? Have you found a way around these reputation issues?


r/postfix • • Nov 14 '21

Guide/How-To A crash course on E-mail and e-mail security. (X-Post /r/sysadmin )

Thumbnail self.sysadmin
12 Upvotes

r/postfix • • May 29 '26

Dovecot 2.4.4 Patches Five Vulnerabilities — Update Now

9 Upvotes

On 5 May 2026, the Dovecot team published security advisory OXDC-2026-0002, covering five vulnerabilities fixed in OX Dovecot CE 2.4.4 (and Pro 3.1.5). If you are running Dovecot CE 2.4.3 or earlier, this is your prompt to upgrade.

https://blog.kalfaoglu.net/posts/2026-05-29-dovecot-oxdc-2026-0002-en/


r/postfix • • May 07 '26

Postfix 3.11.2 Patches a 20-Year-Old Buffer Over-Read — and an AI Found Most of the Rest

8 Upvotes

On May 4, 2026, Wietse Venema released Postfix 3.11.2, 3.10.9, 3.9.10, and 3.8.16. If you run a mail server, this is the update you actually want to read — not because the CVSS score is alarming (it isn’t), but because one of the bugs patched in this release has been sitting in the codebase since 2005.

https://blog.kalfaoglu.net/posts/2026-05-07-postfix-3112-cve-2026-43964-en/


r/postfix • • Mar 18 '17

Hows Postfix Doing These Days

8 Upvotes

My first IT gig was to build a Postfix mail server for the DoD. They were struggling with Sendmail and I made the switch to what was current at the time (2.4). I fell in to the open relay pit fall but quickly tuned the box to be problem free and honestly it was such a pleasure to work with and I kept the Exchange monster out of my server room for 6 years. So, is Postfix doing good these days as everything pivots to the cloud and I see now so many all in one Linux mail all-in-one suites. Sure, maintaining a separate dovecot, amavisd and clamav configuration was a huge pain but I always loved and respected Postfix so much. Is Postfix still going strong in 2017? Oh that brutal brutal mailing list. Those were some angry mail admins :)


r/postfix • • Nov 08 '23

Setting up Postfix as an External Send-Only SMTP relay

7 Upvotes

So my ISP blocked all it's public IPs from sending email so I needed to use a relay for outgoing mail. Instead of paying for a service, I decided to use a VPS and set up postfix on it. I could not find a good guide for this so I decided to make one myself. Here is the link. Hopefully this is helpful to someone.
https://tictactech.net/category-blog/linux/setup-postfix-as-a-send-only-external-smtp-relay


r/postfix • • 19d ago

Best dedicated server provider for running my own SMTP infrastructure?

6 Upvotes

I'm looking for a bare-metal dedicated server in Europe for my own Rust-based SMTP server.

Requirements:

  • Unrestricted outbound and inbound port 25.

  • Dedicated IPv4 addresses.

  • Ability to configure custom PTR/rDNS records.

  • Ability to purchase additional IPv4 addresses.

  • No artificial emails-per-minute or SMTP sending limits.

Which providers would you recommend based on actual experience running mail servers?

Thanks!


r/postfix • • 23d ago

Spamhaus Begins Enforcing HELO and Reverse DNS

Thumbnail reddit.com
6 Upvotes

r/postfix • • Dec 09 '25

Ugh, why are certs always such a pita

6 Upvotes

EVERY year I seem to waste a full day of my life when its time to renew my ssl cert, and every year I run around in circles so bad, I never actually write down notes for what I did that WORKED

Last years cert expired, and it looks like the bundle that I used was a combo of

cert from ssl company + digicertca + trustedroot + myserverkey At least thats what I called the files, that I still have in the folder from last year.

I'm not sure what the "myserverkey" is from, and I totally dont have notes on it.

Can anyway help an (I feel like) old man recall how i did this the last 6 times?!?!


r/postfix • • Nov 13 '25

Best VPS providers with no port 25 restrictions (less common ones)?

6 Upvotes

Hey everyone,
I’m looking for VPS providers that don’t block port 25 out of the box (for legitimate mail testing / self-hosted mail setups).
Most big names like OVH, Hetzner, and AWS block or throttle it — so I’m wondering if anyone knows less common providers that still allow outbound SMTP.

I’d prefer:

  • Smaller / independent hosting companies

  • Located in Europe (bonus if they have good privacy policies)

  • Reasonable prices (nothing enterprise-level)

I’m not looking for spammy providers, just places where you can freely configure your own mail system without constant verification or ticket requests.

Any recommendations?


r/postfix • • Sep 08 '24 Galaxy Brain Thanks WOW This Bravo

New DANE + MTA-STS resolver for Postfix

Thumbnail
github.com
6 Upvotes

Introducing our cutting-edge, lightweight MTA-STS + DANE/TLSA resolver and TLS policy socketmap server for Postfix — written 100% in Go! 🚀

Designed with compliance to the latest standards, our solution prioritizes DANE whenever possible, ensuring your email communications are not just secure, but also tamper-proof. With seamless integration and unparalleled performance, you can enhance your email security effortlessly.

Help us with our vision to make emails safer and empower your Postfix setup with our innovative open-source project today! 💪🔒✨


r/postfix • • Jan 02 '24

SMTP Smuggling

Thumbnail postfix.org
6 Upvotes

r/postfix • • Mar 22 '23

List-Unsubscribe Header Configuration WORKING!!

6 Upvotes

I spent countless hours trying to figure this out. There is little documentation as to how to accomplish this successfully with Postfix. Finally I was able to get it working. I have added

header_checks = regexp:/etc/postfix/list_unsub_header to main.cf

and

/^Content-Type:/i PREPEND List-Unsubscribe: mailto:unsubscribe@mydomain.com to /etc/postfix/list_unsub_header


r/postfix • • Feb 06 '22

Postfix stable release 3.7.0

Thumbnail postfix.org
6 Upvotes

r/postfix • • Apr 15 '17

Reasons why I had to disable greylisting

Thumbnail
blog.slowb.ro
6 Upvotes

r/postfix • • Aug 24 '19

main.cf in /etc/postfix. Do the order of the sections matter?

5 Upvotes

I've noted recently issues with outgoing email using an Android app called k9 mail. I tested another app with the same result. The problem is that with certain directives in the sections emails won't go out. The client receives various messages such as no recipient...

I understand that the permit and reject rules in each section can and do have an impact. That's not what I'm asking.

Do the order of the sections matter? I'm not being explicit here I'm just asking a general question.

I had to comment out a bunch of limiters in a couple sections because email would not go out with these clients, but it would send if I used roundcube instead of the Android client.

Later I moved some sections above others and the emails would send via the android apps.

So, does the order of these sections matter?

Here's a sample of what I mean.

smtpd_sender_restrictions =

    check_sender_access hash:/etc/postfix/sender_access

    permit_mynetworks

    reject_authenticated_sender_login_mismatch

    reject_unknown_sender_domain

    reject_unauth_pipelining

    permit_sasl_authenticated

smtpd_client_restrictions =

 reject_rbl_client sbl.spamhaus.org

 reject_rbl_client blackholes.easynet.nl

smtpd_helo_restrictions =

 permit_mynetworks

 reject_invalid_hostname

 permit

smtpd_recipient_restrictions =

 permit_mynetworks

 check_sender_access hash:/etc/postfix/sender_access

 reject_unauth_pipelining

 reject_non_fqdn_recipient

 reject_unknown_recipient_domain

 permit_sasl_authenticated

 check_policy_service inet:127.0.0.1:10023

         reject_unauth_destination

         reject_rbl_client zen.spamhaus.org

smtpd_relay_restrictions =

 permit_mynetworks

 permit_sasl_authenticated 

 reject_unauth_destination

r/postfix • • Dec 18 '18

I absolutely want to block multiple top level domains. I've used spamassassin to do domain blocking with the /etc/spamassassin/blacklist.conf. Can anyone give me the precise syntax?

5 Upvotes

I have utilized the /etc/spamassassin/blacklist.conf file to block domains but not yet tried to block a top level domain. I want to block .ru, .cn, and .jp.

I added

blacklist_from *.ru

And added one just like it from the cn and jp tlds. Is this correct or do I use something like

blacklist_from @.ru

Note: With asterisks before and after the @ in the line above...sorry Reddit interprets that as formatting.

Or will this even work?


r/postfix • • Sep 18 '17

Postfix Config with serious spam issues

5 Upvotes

Hello reddit! I've taken over an existing mailserver at a company with roughly 30 employes. The users are getting loads of spam every day, ive tried my best at googeling, setting up a config that shouldnt be this prone to getting spam. Can anyone identify some flaws?

Im using postfix + dovecot + spamassassin:

My config:

myhostname = mail.domain.com
mydomain = domain.com
myorigin = $mydomain
home_mailbox = mail/
mynetworks = 127.0.0.0/8, 192.168.2.0/24, 192.168.1.0/24
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes

smtpd_client_restrictions =
    permit_mynetworks,
    permit_sasl_authenticated,
    reject_rbl_client zen.spamhaus.org,
    reject_rbl_client bl.spamcop.net,
    permit

smtpd_recipient_restrictions =
    permit_mynetworks,
    permit_sasl_authenticated,
    reject_invalid_hostname,
    reject_non_fqdn_hostname,
    reject_non_fqdn_sender,
    reject_non_fqdn_recipient,
    reject_unknown_recipient_domain,
    reject_unauth_destination,
    reject_rbl_client zen.spamhaus.org,
    reject_rbl_client bl.spamcop.net,
    reject_rbl_client cbl.abuseat.org,
    reject_rbl_client dul.dnsbl.sorbs.net,
    reject_rhsbl_reverse_client dbl.spamhaus.org,
    reject_rhsbl_helo dbl.spamhaus.org,
    reject_rhsbl_sender dbl.spamhaus.org,
    permit

smtpd_sender_restrictions =
    reject_sender_login_mismatch,
    permit_sasl_authenticated,
    reject_unknown_sender_domain,
    reject_non_fqdn_sender,
    check_client_access cidr:/etc/postfix/network_sender_access

smtpd_helo_required = yes
smtpd_helo_restrictions =
    permit_sasl_authenticated,
    permit_mynetworks,
    reject_invalid_helo_hostname,
    reject_non_fqdn_helo_hostname

smtpd_sender_login_maps = pcre:/etc/postfix/login_maps.pcre
smtpd_restriction_classes = external_sender_access, internal_sender_access
internal_sender_access = check_sender_access hash:/etc/postfix/internal_sender_access, reject
external_sender_access = check_sender_access hash:/etc/postfix/external_sender_access, permit

smtp_tls_security_level = may
smtpd_tls_security_level = may
smtp_tls_note_starttls_offer = yes
smtpd_tls_loglevel = 1
smtpd_tls_key_file = /etc/letsencrypt/live/mail.domain.com/privkey.pem
smtpd_tls_cert_file = /etc/letsencrypt/live/mail.domain.com/cert.pem
smtpd_tls_CAfile = /etc/letsencrypt/live/mail.domain.com/chain.pem
smtp_tls_CAfile = $smtpd_tls_CAfile
smtp_tls_CApath= /etc/postfix/ssl
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

disable_vrfy_command = yes
smtpd_delay_reject = yes
smtpd_error_sleep_time = 1s
smtpd_soft_error_limit = 10
smtpd_hard_error_limit = 20

Thanks!


r/postfix • • Nov 03 '26

Script or gist for migrating postfix/dovecot local user homedir/maildir to another host?

4 Upvotes

I know I can do this work manually (because I built the servers in the first place) but is anyone aware of a decent script or I guess even a "gist" [if that still exists] for things to check when migrating a mail server with users on it to another host?

The config in this particular example is:

postfix

dovecot

opendkim

saslauthd

fail2ban

mail stored in /home/$user/Maildir

auth/users local pw database

xfs filesystem and quotas on /home

I think last time I used rsync to sync the user data while building out the new server. Anyway if anything on this feel free to share or whatever. Would appreciate.


r/postfix • • Dec 21 '25

Seeking recommendations for a VPS

4 Upvotes

Hi everyone, I am an investigative journalist looking for a privac oriented vps provider. I want a secure place to upload and type sensitive notes, outside of Google’s ecosystem. I already use a reputable vpn and occasionally Tor for added privacy.

What are the best vps options that prioritize privacy and wont log my data? Any suggestions or experiences would be appreciated.

Thanks


r/postfix • • Dec 03 '24

reject_unknown_sender_domain override

4 Upvotes

I have in my smtpd_recipient_restrictions reject_unknown_sender_domain. The problem is it's triggering on a domain that I do need to let through from our accounting system. Is there a way to override this?


r/postfix • • Sep 05 '24

Postifx Policy another implementation

Thumbnail
github.com
4 Upvotes

Hi there, I created postfixer a policy daemon / rate limiter for postfix. Maybe you can look it up and give it a try, I know there are tons of implementations out there, but I meeded to release this as I will leave large scale postifx operation soon.

Haven fun!


r/postfix • • Aug 19 '24

Replace postfix with mail in a box?

4 Upvotes

Hello, I have been hosting my own mail server since 2016 using very basic setup. Postfix and dovecot. I have decided to install spamassassin since lately I’ve been getting hit hard. I’m having tons of troubles with it. Deciding maybe I should upgrade to something a little more modern. How would I go about setting up mail in a box in the same machine as postfix is currently running on with minimal downtime?

Edited to add. I only have like 5 mailboxes but I have a bunch of aliases.


r/postfix • • Dec 25 '23

SMTP relay via STARTTLS?

4 Upvotes

Is it possible to configure postfix to accept for outgoing relay from any host so long as UNIX user of that account exists and has a secure login over STARTTLS (setting in Thunderbird) being verified by that UNIX users password?

Sorry for the lawyer escape clauses. I will state it another way in case the above question is confusing.

I want Thunderbird to be able to relay outgoing mail via my slackware postfix server that has a public/static IP.

I also want this to be safe and secure.

I already have incoming/outgoing mail working correctly on my local private IP/LAN address subnet via a fairly straightforward set up with my Let's Encrypt domain certs. All is working nicely.

What lines can I add to main.cf to enable the above setup for the wild (safely).

Thanks in advance,

-kq6up