Postfix stopped sending mails out of nowhere

UWRP

New Member
Credits
133
I tried setting up smtp with gmail but it didn't work. I uninstalled postfix and installed Sendmail but I'm having the exact same problem. Really confused.
 


f33dm3bits

Gold Member
Gold Supporter
Credits
3,487
I tried setting up smtp with gmail but it didn't work. I uninstalled postfix and installed Sendmail but I'm having the exact same problem. Really confused.
"Not working" is really broad, also I would go for postfix it's easier to setup. I tried it in in a test vm and it works:
---------------------------------------------------------------------------------------------------------------------------------------------------
Sep 10 19:48:37 rhel8 postfix/pickup[4058]: D827588971D: uid=0 from=<root>
Sep 10 19:48:37 rhel8 postfix/cleanup[4067]: D827588971D: message-id=<[email protected]>
Sep 10 19:48:37 rhel8 postfix/qmgr[4059]: D827588971D: from=<[email protected]>, size=422, nrcpt=1 (queue active)
Sep 10 19:48:37 rhel8 postfix/cleanup[4067]: DA23B88971E: message-id=<[email protected]>
Sep 10 19:48:37 rhel8 postfix/local[4068]: D827588971D: to=<[email protected]>, orig_to=<tux>, relay=local, delay=0.02, delays=0.01/0.01/0/0, dsn=2.0.0, status=sent (forwarded as DA23B88971E)
Sep 10 19:48:37 rhel8 postfix/qmgr[4059]: DA23B88971E: from=<[email protected]>, size=536, nrcpt=1 (queue active)
Sep 10 19:48:37 rhel8 postfix/qmgr[4059]: D827588971D: removed
Sep 10 19:48:38 rhel8 postfix/smtp[4061]: DA23B88971E: to=<****@outlook.com>, orig_to=<tux>, relay=smtp.gmail.com[108.177.127.108]:587, delay=0.92, delays=0/0/0.3/0.62, dsn=2.0.0, status=sent (250 2.0.0 OK 1599760117 lr14sm8271119ejb.0 - gsmtp)
Sep 10 19:48:38 rhel8 postfix/qmgr[4059]: DA23B88971E: removed
---------------------------------------------------------------------------------------------------------------------------------------------------
I also received the email at this address, and the sender was the gmail adress which I specified in the configuration.

1. Install postfix and sasl: postfix cyrus-sasl cyrus-sasl-lib cyrus-sasl-plain
2. Enable two factor authentication for your account: https://myaccount.google.com/security
3. Generate a password for your application: https://security.google.com/settings/security/apppasswords
4. Create authentication file and add your email and user the app password you just created: /etc/postfix/sasl_passwd --> [smtp.gmail.com]:587 [email protected]:YourAppPassword
5. Permissions: chmod 600 /etc/postfix/sasl_passwd
6. Configuration: add this to /etc/postfix/main.cf:
relayhost = [smtp.gmail.com]:587
smtp_use_tls = yes
smtp_sasl_auth_enable = yes
smtp_sasl_security_options =
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_tls_CAfile = /etc/ssl/certs/ca-bundle.crt
7. Create lookup table: postmap /etc/postfix/sasl_passwd
8. Restart postfix

Did you hear back yet from privateemail.com support?
 
Last edited:


Members online


Top