Score:0

Relay emails to another server

gs flag

I'm hosting all my users websites on server1, it has multiple websites, e.g. user1.com, user2.com, user3.com ...

Our upstream provider no longer support reverse DNS, so I need to use server2 to help send out emails. Both server1 and server2 have Postfix installed.

I'd like to ask how to configure postfix and DNS of the users' websites so that server2 can send emails for all websites that are being hosted on server1, while these websites should still receive incoming emails normally to server1?

I have searched a lot but haven't found any relevant tutorial, so it is really great if anyone here can direct me to a good tutorial that I can follow.

Thank you!

Score:0
cn flag

You need to route all outgoing mails from server1.com to server2.com

/etc/postfix/main.cf on server1.com

# specify SMTP relay host
relayhost = [mail.server2.com]:25
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.