Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, 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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2006
    Posts
    5

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


    Hi,
    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/main.cf, I have found the following:
    Code:
    Code:
    mydestination= $myhostname, localhost.$mydomain
    Should this be changed to:
    Code:
    Code:
    mydestination= $myhostname, mail.$mydomain
    Any thoughts?

    Matt

  2. #2
    Linux User
    Join Date
    Apr 2005
    Location
    Ohio
    Posts
    326
    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.
    far...out

Posting Permissions

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