Relay Hosts with Postfix

ebenvr

New Member
Feb 5, 2024
7
0
1
Good day,
I use Proxmox to server multiple email domains.
I need some advise on how to go about the following using Postfix:

I have 1 domain that needs to send mail to a certain host for email branding. The rest can stay as is.

How would I go about setting this up in Postfix. Please note that I would also need to authenticate with username and password to the host.

I read some forums and saw that people keep mentioning to use Postfix.

Any help will be appreciated.
 
edit: I think I am confused as to what you are trying to do, so you can ignore this reply.

Here are my notes:

postfix relay settings at /etc/postfix/main.cf

relayhost =pmg.domain.com:26
myhostname = hostname
mydomain = domain.com
myorigin = mailsender.domain.com


To test send from command line:

mail -s "Subject Line" destination@emailaddress.com
type your body here
<Ctrl +D> to exit body
CC: enter any cc address here
 
Last edited:
Hi Mihai

I hope you are well.

I have multiple domains sending through my proxmox device.

For 1 of these domains, I want to send the mail to lets say mimecast servers so that signatures etc can be applied. I obviously then need to also authenticate to the mimecast servers. I see lots of people talk about doing this with postfix?

Not to sure how i would go about this.
 
edit: I think I am confused as to what you are trying to do, so you can ignore this reply.

Here are my notes:

postfix relay settings at /etc/postfix/main.cf

relayhost =pmg.domain.com:26
myhostname = hostname
mydomain = domain.com
myorigin = mailsender.domain.com


To test send from command line:

mail -s "Subject Line" destination@emailaddress.com
type your body here
<Ctrl +D> to exit body
CC: enter any cc address here
Hi Mihai

I hope you are well.

I have multiple domains sending through my proxmox device.

For 1 of these domains, I want to send the mail to lets say mimecast servers so that signatures etc can be applied. I obviously then need to also authenticate to the mimecast servers. I see lots of people talk about doing this with postfix?

Not to sure how i would go about this.
 
So to make it more clear, all emails go through Proxmox Mail Gateway. You want to route emails depending on their source, a specific domain, and route them to a specific server?

If so, I found this thread with what I believe is an answer to your question: Sender based routing