Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have configured Postfix relay server to send mail to external mail server so if someone is using my relay to send mail to external client then its domain should get change.
Like
server A is my relay server.
Station1 is client which will use server A relay to send mail.
now if i am sending mail from station1 then it is going to Server A and when server A send mail to external client then it domain address is not getting change.
If i am sending mail from relay server itself then it is working. Why is it not working from station1?
I do not want to do this for specific domain or any address so whatever domain is that should get convert to my defined domain.
Hi All,
I have configured Postfix relay server to send mail to external mail server so if someone is using my relay to send mail to external client then its domain should get change.
Like
server A is my relay server.
Station1 is client which will use server A relay to send mail.
now if i am sending mail from station1 then it is going to Server A and when server A send mail to external client then it domain address is not getting change. If i am sending mail from relay server itself then it is working. Why is it not working from station1? I do not want to do this for specific domain or any address so whatever domain is that should get convert to my defined domain.
You don't say how 'station1' is sending mail now (using Postfix? Or attaching directly via IMAP/POP3 client?), or what station1's operating system is. But changing the domain name for all emails going through a server is fairly simple, and covered in the basic configuration documentation.
thanks for your reply.
I have already tired these links but no luck.
station1 is sending mail through postfix and using server1 as a relay host.
Then you didn't read them, or do things correctly. Changing domain-names is trivial, and is contained in BOTH the first two links, with an example in the third (for the originating station), and additionally, the option of virtual hosting in the fourth.
Sorry, but you just didn't read/try what was in those links. The third link has a VERY CLEAR example on what to do.
but these parameters will only work if your sender domain address is incomplete. I want to force postfix to change the domain to my defined domain because i am not aware what domain will be used by sender. Whatever domain would be that should get convert to my domain.
but these parameters will only work if your sender domain address is incomplete. I want to force postfix to change the domain to my defined domain because i am not aware what domain will be used by sender. Whatever domain would be that should get convert to my domain.
Please suggest if there is any feature.
I did, twice now, and this makes the third. You're either not reading or understanding the documentation. AGAIN, if you read the third link I looked up for you and sent you, you'd have seen:
What if i dont want to do any setting at station1 end. If station1 is sending mail with any other domain then it should get convert into my defined domain on server1 and that's i am trying to do.
What if i dont want to do any setting at station1 end. If station1 is sending mail with any other domain then it should get convert into my defined domain on server1 and that's i am trying to do.
You said station1 was under your control, and you're relaying email for it, so making that small modification is the simplest way to do it. And AGAIN, the Postfix documentation has many other options for rewriting addresses/domains. http://www.postfix.org/ADDRESS_REWRI...E.html#generic
Since you say you've already read the instructions, I'm surprised you haven't found the answer. One of the ways:
Code:
Put into main.cf file:
recipient_canonical_maps = hash:/etc/postfix/domainmap
Code:
Put into the domainmap file:
@mydomain.com @mydomain.local
Then run "postmap /etc/postfix/domainmap", and reload postfix.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.