4/30/2023 0 Comments Mp4tools ubuntu+ Fire it up, test it out # postfix reload +smtp_sasl_security_options = noanonymous +smtp_sasl_password_maps = hash:/etc/postfix/sasl_password +# Use SASL authentication over smtp *client* (for relaying) Smtp_tls_session_cache_database = btree:$/smtp_scache +smtp_tls_policy_maps = hash:/etc/postfix/smtp_tls_policy +# Turn on TLS for the smtp *client* (for relaying) +sender_dependent_relayhost_maps = hash:/etc/postfix/sender_dependent_relayhost smtp unix - n - smtp +smtp unix - smtp Hook it all up in main.cf # $EDITOR /etc/postfix/main.cf # ln -s /etc/ssl/certs /etc/postfix/certs This kind of sucks, but I didn't really see any other way to do it. We need to link in the openssl roots and take the smtp client process out of chroot. # postmap sasl_password Fix TLS certificate validation # postmap smtp_tls_policy Set up passwordsĬreate sasl_password that configures your username/password for each host. In part this is necessary to guarantee that our passwords aren't sent in the clear, since gmail doesn't support anything else. # postmap sender_dependent_relayhost Require TLS for the relaysĬreate smtp_tls_policy that requires TLS with valid certs for our relay hosts. Set up sender-dependent relayingĬreate sender_dependent_relayhost, which maps sender addresses to outgoing servers (don't forget postmap). Docs suggest that I would have had less trouble with the TLS configuration in 2.5, but I didn't really feel like recompiling it. I was able to glean a lot of info from it, but it wasn't quite what I wanted. ![]() There's an article on setting up two postfix instances to do smtp forwarding where the assumption is that each account on your box should be magically transformed into a single outgoing smtp account. This seems like a really bad idea on a true multi-user system, since I'm pretty sure it would let anybody on my box send mail as me simply by specifying my email address in the smtp envelope. Ok, so I went ahead and played around with postfix to see if I could get it to forward the mail the way I wanted.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |