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've explored the Postfix documentation and it seems that that what I want to do is setup:
Postfix on a Null Client

Slicehost is a dead end for technical help, but here is what I want to do.

I need have email setup just to send out registration confirmations and new password requests.

I want to do this for 2 domains hosted on the server:
domain1.com
domain2.com

This is the current configuration for domain1.com:

/etc/postfix/main.cf

myhostname = mail.domain1.com   
alias_maps = hash:/etc/aliases  
alias_database = hash:/etc/aliases  
myorigin = /etc/mailname  
mydestination = mail.domain1.com, instantdm, localhost.localdomain, localhost  
relayhost = domain1.com  
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128  
mailbox_size_limit = 0  
recipient_delimiter = +  
inet_interfaces = loopback only  
local_transport = error:local delivery is disabled  

This is how it seems it seems main.cf should be configured for domain2.com, but I don't understand how to configure postfix for 2 different domain names.

/etc/postfix/main.cf:

 myorigin = domain2.com # this defines what the From address in the email user@domain.com vs. user@nullclient.example.com  
 relayhost = $mydomain  
 inet_interfaces = loopback-only  
 local_transport = error:local delivery is disabled  

Can you point me to better instructions or tell me how to configure this properly?

share|improve this question

migrated from stackoverflow.com Aug 4 '11 at 19:49

This question came from our site for professional and enthusiast programmers.

1 Answer 1

You should list domain1.com, domain2.com in "mydestination =", not "myorigin =".

share|improve this answer

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.