Sending from an alternative domain (thats not on miab)


#1

I use miab and love it. I need to send email using a different sender address.

Example:
my miab has james@aaa.com and has the domain aaa.com in the dns
I want to be able to send email with “from” as james@bbb.com (but I don’t host bbb.com)

I added an alias for james@bbb.com to james@aaa.com, so miab then added bbb.com to the dns and allows me to send as james@bbb.com

The problem with this solution is while I can email using From james@bbb.com, if I want to email others that are on bbb.com (which I dont host) like fred@bbb.com it won’t work because miab thinks bbb.com is on my server

any ideas how to get around this ? so i can send as james@bbb.com but also email other address at @bbb.com which is on another server

James


#2

bbb.com would need to be setup to allow your aaa.com server to send mail as bbb.com. It is a bit complex and not really designed for that.


#3

found a solution… i removed bbb.com aliases so there’s no name server entry, then added relay_domains = bbb.com to the /etc/postfix/main.cf file and restarted postfix

(as mentioned I’m not hosting bbb.com so dont receive mail for it on my server)

just fyi… the reason for this is the bbb.com is a microsoft exchange server which isnt set up for smtp authentication