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.

The problem: I have 2 emails:

info@myhost.com

clientmail@anotherhost.com

When email is sent with help of PHP the email to clientmail@anotherhost.com is delivered, but email to info is not - user info doesn't exists.

I have postfix installed on myhost.com server, and no email server.

How to make postfix send mails to outside world to address info@myhost.com?

share|improve this question

migrated from superuser.com Jan 13 '12 at 6:38

This question came from our site for computer enthusiasts and power users.

    
"no email server" -> postfix is not listening on port 25. –  Thorbjørn Ravn Andersen Jan 12 '12 at 12:45
    
If you have Postfix, then you do have a mail server. Your question needs to explain where you want the mail to go, given that your mail system appears, without such an explanation, to be doing the right thing. (Mail sent to a mailbox that is on the local system is delivered locally, failing if there's not in fact a mailbox by that name.) –  JdeBP Jan 12 '12 at 12:47

1 Answer 1

up vote 1 down vote accepted

I have postfix installed ... and no email server.

Postfix is your mail server, and it uses local delivery if it discovers that your recipient's domain is the same as its own.

Edit main.cf and remove myhost.com, $mydomain, and similar entries from the mydestinations setting. This should make Postfix deliver messages to myhost.com over the network. ($myhostname and localhost can and perhaps even should remain.)

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.