-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forward mails to other host and port with same domain #242
Comments
So you're asking if forward-email=someotherdomain.com will work in combination with forward-email-port? Yes. Emails don't get rewritten (we don't rewrite FROM/TO or anything, just the envelope/MAILFROM in SMTP). |
But I just tried it on https://forwardemail.net and mails to user@domain.com got rewritten to user@someotherdomain.com when talking to my backup mx at someotherdomain.com (and thus my mail server rejected them). |
Can you share the rejection message and the original raw email? niftylettuce@gmail.com works We don't rewrite FROM/TO or any headers in the email, just the envelope - so if it's getting rejected, it might be due to SPF or DKIM or DMARC failing and your server is rejecting because of that. |
The error was indeed a SPF message, but the |
So you say that the message wasn't sent to |
It gets forwarded at the SMTP level to the new host |
Did you need help fixing the SPF issue? Also the SRS rewrite won't happen anymore in the very near future so that will be another less headache |
I want to use mail.bekerle.com as main mail server and mx2.bekerle.com as backup mx (both for all qownnotes.org mails). mx2.bekerle.com has a blocked port 25, so postfix runs on port 1025. For qownnotes.org I now have these MX records (mail.bekerle.com will have priority 5 again later, just for testing I gave forwardemail a lower priority):
I've these txt entries:
Formerly I just had But I still get these log entries on the mx2.bekerle.com server when I send a mail to
And I still see a |
In the
Again it looks like the mail was relayed to |
You have to include Forward Email on both domains (SPF wise), and on the second domain you have to include the first domain in the SPF record. Since the priority is 50 and mx1 and mx2 are not failing (aka they are responding), it will always go to mx1 or mx2, and never mail.bekerle.com. |
Thank you for your answer!
So I'll try to add it also to mail.bekerle.com?
Yes, thank you. I'm not actively using qownnotes.org for email at the time. I have those priorities set to test forwardmail. |
Still the same SPF error. 😅 |
This ticket is closed, but I am seeing exactly the same. Emails are delivered to my home emailserver, but not with the original address, but with a rewritten domain that my emailserver is not accepting mail for. I have found another service that behaves as you would expect: dynu.com |
@kkplein we don't rewrite anything here - can you share the raw source headers to show what you mean? |
Hi there, thank you for this great service!
Is it possible to forward emails to another host (in conjunction with the forward-email-port setting) without rewriting the domain? If I am using
forward-email=mx2.domain.com
for my domaindomain.com
, then emails like test@domain.com will be rewritten to test@mx2.domain.com, but I want them stay the same.Scenario: using forwardemail as backup mx to a host with blocked port 25
Thank you very much!
The text was updated successfully, but these errors were encountered: