-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
SMTP relaying depending of the recipient #1470
Comments
Interesting. I haven't used that approach at all. However, if you have a fixed IP you may perhaps be able to ask your ISP if they can add a reverse DNS record for you? If you're lucky they will do it. Happened to me once... but then I've failed to convince several others. If not I hope that somebody who is using this will answer. Good luck with your business! |
Thank you very much for your support, where I am it is practically impossible to ask for a fixed IP and request the ISP to put an rDNS record on it. Because we are talking about residential Internet service (for home users and cheap) that when you call them on the phone to ask for help, the only solution they give you is to restart your router. I have renewed my thread with a new link: https://www.linuxbabe.com/mail-server/postfix-transport-map-relay-map-flexible-email-delivery/amp Because I realized that the previous one was talking about how to get emails in, but really what I wanted was to control how they have to go out by domain. Thank you very much for your comment and help, I really like the atmosphere of this community. I hope I can help you in other things. 馃憤 |
After having investigated thoroughly on the matter with my almost total ignorance and null ability on the System, I have managed to control separately the send of emails according to recipient (address or domain). What I have achieved is very dirty, I hope I can have your help to improve it and, if possible, add this function to the beloved
|
@cottonthread Interesting work. Even though you said this was dirty, would you add a wiki page entry with what you have explained here? I'm sure this is a rather specific case, and there is a valid case to be made for checking against PTR/rDNS records. I'd like to close this, but your contribution is worth a wiki page for sure. I don't have the time (nor knowledge right now) to implement what you've said. But if you run into any trouble, I'd like to point towards Contabo. You can get a very cheap VPS sufficient for a Mailserver and you can set the rDNS entries yourself. |
Your solution still works!!! I just have a question about the sasl password, docker mail server provides a Just wonder what's the logic behind docker mailserver. |
Context
I created an home server with my Non-rDNS IP for my garage company (a startup without any financing and during COVID-19, yeah! 馃 ), now I see I can't delivery any mail to those servers which need to verify rDNS records. Like mx01.1and1.es or kundenserver.de... It always deferrer my messages without any communication to my email inbox, the only way to detect it is based on the daily informing or looking into real-time server logs.
I found out some solutions to have a rDNS record like SendGrid, but for freemium, only 100 messages per day could be offered, and that is not enough, because all of our partners needs this quota. And I don't think creating multiple SendGrid account is an ethical ideal.
Expected Behavior
Maybe there is someway which allow me use the relay server just in case of recipient's domain.
Actual Behavior
Right now like in the Repo Wiki says, it just allow us to use SENDER relay: here
Possible Fix
Maybe this is the solution?
https://www.linuxbabe.com/mail-server/postfix-transport-map-relay-map-flexible-email-delivery/amp
http://www.postfix.org/transport.5.html
I think transport_maps and relay_transport is the key. But I really don't have the technical skill to follow and execute the process included in the link.
Steps to Reproduce
Your Environment
Apr 24 11:46:44 MYHOST postfix/smtp[25410]: 6CAE65D007: host mx01.1and1.es[217.72.192.67] refused to talk to me:
554-kundenserver.de (mxeue109) Nemesis ESMTP Service not available 554-No SMTP service 554-Bad DNS PTR resource record. 554 For explanation visit https://www.ionos.com/help/index.php?id=2425&ip=0.0.0.0&c=rdns
Thank you for creating such magnifical docker so people like us can use it easily. I hope to get your kindly help for solving this issue and maybe it can help other people too! 馃憤
The text was updated successfully, but these errors were encountered: