Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Courier / Postfix - tweaking settings to send mail outside the server all the time

    This should be an easy one i hope. I have a dedicated web server running Fedora Core 3 - it hosts multiple websites.

    There is an issue with the Courier / Postfix configuration where email is routed internally before any attempt is made to send it externally. One of the sites I host has an MX record on the domain to send mail straight to the companies server - hence no email accounts are setup for it. Therefore when I send email from PHP scripts and the like, Postfix tries to route the mail internally (as the website domain is hosted on the same server, so it thinks its internal), finds no email addresses to send it to, and returns a "Mail cannot be delivered" error.

    In the postfix config in /etc/postfix/, I have found the following:
    mydestination= $myhostname, localhost.$mydomain
    Should this be changed to:
    mydestination= $myhostname, mail.$mydomain
    Any thoughts?


  2. #2
    Linux User
    Join Date
    Apr 2005
    my only thought is the mail server should send mail outside your server by deafult unless you have configured $mydomain with domains that you do not host mail for.. if the server believes it is hosting mail for a specific domain it has no reason to send the mail elsewhere.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts