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

I have a postfix mail server on ubuntu on my virtualbox,now the domain of the mail server is abc.com...hence it receives mail from any "from address" but the "to address" needs to be proper i.e a valid user in the mailserver.

Now,in my project i am sending fake mails to user whose mail id consists of other domains too...like cde.com

My final objective is to show the mails in the mail server.

When i tried that ,it goes directly in to the mailserveer logs i.e /var/log/mail.log i.e as an error

is there any way i can store these mails in the mailserver??

share|improve this question

1 Answer 1

add cde.com to mydestination

# sed -ie 's/mydestination =/mydestination = cde.com,/' /etc/postfix/main.cf
# postfix reload
postfix/postfix-script: refreshing the Postfix mail system
# postconf | grep "^mydestination"
mydestination = cde.com, abc.com
share|improve this answer

Your Answer


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.