How to configure postfix to use mailbox.org smtp
Proposed
Hi,
I am trying to setup postfix to send emails using mailbox.org smtps for my homelab.
But I get errors:
Mar 3 11:26:06 zoidberg postfix/pickup[16704]: 916CF80CBA: uid=0 from=<root> Mar 3 11:26:06 zoidberg postfix/cleanup[16710]: 916CF80CBA: message-id=<20230303102606.916CF80CBA@mydomain.tld> Mar 3 11:26:06 zoidberg postfix/qmgr[16705]: 916CF80CBA: from=<root@mydomain.tld>, size=473, nrcpt=1 (queue active) Mar 3 11:26:06 zoidberg postfix/smtp[16712]: 916CF80CBA: to=<to@tomain.tld>, relay=smtp.mailbox.org[185.97.174.196]:587, delay=0.2, delays=0.01/0/0.17/0.03, dsn=5.7.1, status=bounced (host smtp.mailbox.org[185.97.174.196] said: 554 5.7.1 <ip5b40601my.ISP[my.ip.address]:46572>: Client host rejected: Access denied (in reply to RCPT TO command)) Mar 3 11:26:06 zoidberg postfix/cleanup[16710]: C5D1D80CE0: message-id=<20230303102606.C5D1D80CE0@mydomain.tld> Mar 3 11:26:06 zoidberg postfix/bounce[16714]: 916CF80CBA: sender non-delivery notification: C5D1D80CE0 Mar 3 11:26:06 zoidberg postfix/qmgr[16705]: C5D1D80CE0: from=<>, size=2669, nrcpt=1 (queue active) Mar 3 11:26:06 zoidberg postfix/qmgr[16705]: 916CF80CBA: removed Mar 3 11:26:06 zoidberg postfix/pickup[16704]: C962D80CBA: uid=65534 from=<from@domain.tld> Mar 3 11:26:06 zoidberg postfix/cleanup[16710]: C962D80CBA: message-id=<20230303102606.C5D1D80CE0@mydomain.tld> Mar 3 11:26:06 zoidberg postfix/local[16715]: C5D1D80CE0: to=<root@mydomain.tld>, relay=local, delay=0.02, delays=0/0/0/0.01, dsn=2.0.0, status=sent (delivered to command: /usr/bin/proxmox-mail-forward) Mar 3 11:26:06 zoidberg postfix/qmgr[16705]: C5D1D80CE0: removed Mar 3 11:26:06 zoidberg postfix/qmgr[16705]: C962D80CBA: from=<from@domain.tld>, size=2871, nrcpt=1 (queue active) Mar 3 11:26:07 zoidberg postfix/smtp[16712]: C962D80CBA: to=<to@domain.tld>, relay=smtp.mailbox.org[185.97.174.196]:587, delay=0.18, delays=0/0/0.15/0.03, dsn=5.7.1, status=bounced (host smtp.mailbox.org[185.97.174.196] said: 554 5.7.1 <ip5b40601my.ISP[my.ip.address]:46584>: Client host rejected: Access denied (in reply to RCPT TO command)) Mar 3 11:26:07 zoidberg postfix/qmgr[16705]: C962D80CBA: removed Mar 3 11:26:07 zoidberg postfix/cleanup[16710]: 0483780CE0: message-id=<20230303102607.0483780CE0@mydomain.tld>
here is my configuration:
relayhost = smtp.mailbox.org: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/Entrust_Root_Certification_Authority.pem smtp_tls_session_cache_database = btree:/var/lib/postfix/smtp_tls_session_cache smtp_tls_session_cache_timeout = 3600s inet_protocols = ipv4 smtp_header_checks = pcre:/etc/postfix/smtp_header_checks
Any help would be much appreciated.
thank you !
Hi,
I am facing the exact same issue. I'd like to configure my hosts to send status notifications. My config is similar to yours:
```
smtp_header_checks = pcre:/etc/postfix/smtp_header_checks
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
relayhost = [smtp.mailbox.org]:587
smtp_fallback_relay = [smtp.mailbox.org]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/relay_passwd
smtp_sasl_security_options = noanonymous
smtp_sasl_mechanism_filter = plain
smtp_use_tls = yes
```
cat smtp_header_checks
```
/^From:.*/ REPLACE From: relay-noreply <relay-username@mailbox.org>
```
cat relay_passwd
```
smtp.mailbox.org:587 relay-user@mailbox.org:RelayUsersPassword
```
Hi,
I am facing the exact same issue. I'd like to configure my hosts to send status notifications. My config is similar to yours:
```
smtp_header_checks = pcre:/etc/postfix/smtp_header_checks
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
relayhost = [smtp.mailbox.org]:587
smtp_fallback_relay = [smtp.mailbox.org]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/relay_passwd
smtp_sasl_security_options = noanonymous
smtp_sasl_mechanism_filter = plain
smtp_use_tls = yes
```
cat smtp_header_checks
```
/^From:.*/ REPLACE From: relay-noreply <relay-username@mailbox.org>
```
cat relay_passwd
```
smtp.mailbox.org:587 relay-user@mailbox.org:RelayUsersPassword
```
Hi 6022710,
I managed to make it work, here's the config:
/etc/postfix/main.cf
/etc/postfix/sasl_passwd
/etc/postfix/smtp_header_checks
And everything gets sent properly !
Hi 6022710,
I managed to make it work, here's the config:
/etc/postfix/main.cf
/etc/postfix/sasl_passwd
/etc/postfix/smtp_header_checks
And everything gets sent properly !
Replies have been locked on this page!