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.
Hello,
I'm completely new to this whole story with Relay servers, I've been given task to set up Open source relay server with high authority. The scenario is:
Isp that im currently working with wants a separate server to forward emails to it's destination. Mainly used for printers etc to send out notifications to users. Mail server is currently set up on a different server, running office 365. It has to be an Open Relay, I've been looking through many sources and still can't get the whole understanding of it.
My question is how to set up Postfix on Ubuntu to act as ONLY open relay server on a separate server, and from my understanding how to point the Server 1 Office 365 to send mail through the relay server, which then will deliver mail to it's destination. I know Open relay is bad for spammers, but i believe there's settings in postfix to allow what networks are allowed to relay emails through it.
Need more information? Feel free to ask me!
Thanks for help!
My question is how to set up Postfix on Ubuntu to act as ONLY open relay server on a separate server, and from my understanding how to point the Server 1 Office 365 to send mail through the relay server, which then will deliver mail to it's destination. I know Open relay is bad for spammers, but i believe there's settings in postfix to allow what networks are allowed to relay emails through it.
Thank you very much for this link! Haven't came across it yet! It will come in very handy!
Iv'e set up before Postfix to relay email through gmail, with spamassassin and GUI Webmin to try understand this whole thing, I've came across this page also, https://nacko.net/creating-an-outgoi...-spamassassin/
Quote:
7) Later on, we’ll be setting up some real email addresses to map to virtual host names. To prepare for this, add this line to the end of the file.
virtual_alias_maps = hash:/etc/postfix/virtual
I'm struggling to understand this part, any other tutorial i have read, always specified relayhost = and then specified the login and the password for that email service, and in this tutorial above he doesn't do anything like that but does Virtual Host Maps where any other previous tutorial hasn't. Also have been chatting with my coli and said i won't be touching the main server where the SMTP is located, which it put me off tracks, because i thought i will have to provide some sort of login and password from that mail server into the second server which is the Relay Server.
Thanks!
//Edit
What domains to receive mail for <-- Virtual maps?
If thats the case how to configure Virtual Alias Maps to accept any email form any user on any domain?
Thanks
Thank you very much for this link! Haven't came across it yet! It will come in very handy!
Iv'e set up before Postfix to relay email through gmail, with spamassassin and GUI Webmin to try understand this whole thing, I've came across this page also, https://nacko.net/creating-an-outgoi...-spamassassin/
I'm struggling to understand this part, any other tutorial i have read, always specified relayhost = and then specified the login and the password for that email service, and in this tutorial above he doesn't do anything like that but does Virtual Host Maps where any other previous tutorial hasn't. Also have been chatting with my coli and said i won't be touching the main server where the SMTP is located, which it put me off tracks, because i thought i will have to provide some sort of login and password from that mail server into the second server which is the Relay Server.
//Edit
What domains to receive mail for <-- Virtual maps? If thats the case how to configure Virtual Alias Maps to accept any email form any user on any domain?
Don't know why you're doing anything with virtual alias maps or anything else. If you want an open relay, a basic install of Postfix gets you 90% there. The documentation (that you were linked to before), tells you how to do this: http://www.postfix.org/BASIC_CONFIGU...tml#relay_from
Put whatever networks/addresses you want to relay mail for into the mynetworks line in main.cf, either for whole subnets or individual hosts...it explains both.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.