You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
see if it hasn't been reported (and possibly already been fixed) first
try with the git master
Describe the bug
When a SMTP relay service is configured on the host (eg, MailJet, DuoCircle), forwarded mails are rejected.
This is because the Dovecot LDA configuration does not rewrite the envelope sender, and the SMTP relay service rejects it because the envelope sender is not a permitted domain.
System information
Froxlor version: 2.2.1-1
Web server: N/A
DNS server: N/A
POP/IMAP server: Dovecot
SMTP server: postfix
FTP server: N/A
OS/Version: Ubuntu 22.04
To Reproduce
Steps to reproduce the behavior:
Configure postfix using a SMTP relay service. (Example: set relayhost = [outbound.mailhop.org]:25 in master.cf)
Relay host will reject email since it sees [email protected] -> [email protected] as envelope sender/receiver and rejects the mail since the envelope sender [email protected] is not configured with the service.
Expected behavior
I expect the relay host to accept the mail being forwarded.
Logfiles
See attached.
Additional context
The solution is to have dovecot rewrite the envelope sender.
Change master.cf from this:
dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${recipient}
to this:
dovecot unix - n n - - pipe flags=DORhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${recipient}
The -f option rewrites the envelope sender, and the O flag adds an X-Original-To header. The original From: header is preserved.
Under this configuration, when a mail is forwarded, the SMTP relay service sees [email protected] -> [email protected] and accepts the email, since mydomain.com is configured with the SMTP relay service.
The text was updated successfully, but these errors were encountered:
How is this a froxlor bug? You've adjusted the postfix configuration ...you are free to adjust configs according to your needs. Froxlor tries to stay as close to the system default configs as possible
As a rule of thumb: before reporting an issue
Describe the bug
When a SMTP relay service is configured on the host (eg, MailJet, DuoCircle), forwarded mails are rejected.
This is because the Dovecot LDA configuration does not rewrite the envelope sender, and the SMTP relay service rejects it because the envelope sender is not a permitted domain.
System information
To Reproduce
Steps to reproduce the behavior:
relayhost = [outbound.mailhop.org]:25
inmaster.cf
)[email protected] -> [email protected]
)[email protected]
from some other address. (Example:[email protected] -> [email protected]
)[email protected] -> [email protected]
as envelope sender/receiver and rejects the mail since the envelope sender[email protected]
is not configured with the service.Expected behavior
I expect the relay host to accept the mail being forwarded.
Logfiles
See attached.
Additional context
The solution is to have dovecot rewrite the envelope sender.
Change
master.cf
from this:to this:
The
-f
option rewrites the envelope sender, and theO
flag adds anX-Original-To
header. The originalFrom:
header is preserved.Under this configuration, when a mail is forwarded, the SMTP relay service sees
[email protected] -> [email protected]
and accepts the email, sincemydomain.com
is configured with the SMTP relay service.The text was updated successfully, but these errors were encountered: