Score:0

Using an existing Postfix + Dovecot server, how do I relay mail not intended for my configured domain?

gt flag

I have a Postfix + Dovecot server that is receiving public mail and allowing folks to view their mailboxes using IMAP just fine for a particular domain (let's call the domain mail.acme.com). But, I have a second use for this server where I need to act as a relay only for traffic on my company's private subnets for a different domain (let's call that domain internal.acme.com). The relay traffic would need to log into the server still in order to send the mail message over but, rather than store the email message, it will forward the mail to another SMTP server.

How do I tweak the Postfix config to perform this relay task without disrupting the mail that is already coming in on "mail.acme.com" for the IMAP server?

I can't seem to find information that blends these two situations together. I either get information on setting up a Postfix relay server or information on adding Dovecot to Postfix, but not both.

Johan avatar
bg flag
They should just log in to your server with an account that is allowed to send mail. If the server allows that account to send mail to external domains, it is allowed to relay. If the MX records for the relay domain are correct your server should just forward (relay) the mail.
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.