Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I currently use postfix to send mail using @domain1.com addresses, mail reception for this domain are handled directly by my provider (OVH). So far so good mails are sent using DKIM no problem.

However I got to change my domain name to domain2.com. So I bought domain2.com and redirected it to the same server as domain1.com. The problem is that this time I want to use my own Mail server for sending and receiving. So

I did reconfigure postfix to handle Virtual host for domain2.com. This works nicely.

Now I would like to send email from domain2.com AND domain1.com but I can't find how to do that since domain2.com is a virtual host.

Whenever a mail is sent from a user on my server, it'll have domain1.com (myorigin parameter from postfix config ?)

So how would you send mail with a virtual account from domain2.com?

Hope I was clear!

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

By using a sender address that contains domain2.com, of course.

share|improve this answer
    
Well even if the tone is a bit condescending you're right, for whoever read this, sendmail has a -f do to such things –  Michael Laffargue Apr 27 '12 at 7:07
    
Excuse me ? Where did you mention sendmail(1) ? I am not a mind reader. –  adaptr Apr 27 '12 at 10:57
    
Well I did put that in the tag but it has been edited. –  Michael Laffargue Apr 27 '12 at 11:54
    
If you'd tagged it as sendmail that would mean the MTA, not the program... –  adaptr Apr 27 '12 at 13:54
    
Well I'm not into server config/install/mail transport ... So you'll excuse my ignorance and give me the chance to learn peacefully. –  Michael Laffargue Apr 27 '12 at 13:58
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.