Results 1 to 10 of 10

Thread: Mail not being delivered externally

  1. #1
    Join Date
    Mar 2010
    Beans
    9
    Distro
    Ubuntu 9.10 Karmic Koala

    Some mail not being delivered externally

    Hi,

    We've just setup an Ubuntu server as our main web server.
    The site's domain, say mydomain.com, has its DNS hosted elsewhere.
    A records are pointed to the IP address of the new server, so far so good.
    Email is however handled elsewhere.
    Sending mail to _anything but_ mydomain.com works fine.
    However when i try to send mail to me@mydomain.com the mail ends in /var/mail/me

    Any idea's on how to deliver the mail externally?

    Using Ubuntu 9.10 with sendmail

    Thanks in advance!
    Last edited by gertjuhh; March 3rd, 2010 at 08:31 PM.

  2. #2
    Join Date
    Mar 2010
    Beans
    9
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Mail not being delivered externally

    *bump*
    Any help would be appreciated!

  3. #3
    Join Date
    Mar 2010
    Beans
    9
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Mail not being delivered externally

    Still haven't been able to solve this problem.
    Will gladly switch to another mail server if that will solve the problem.
    All we need it for is sending out mail.

  4. #4
    Join Date
    Nov 2005
    Location
    Bordeaux, France
    Beans
    11,292
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Mail not being delivered externally

    Your server probably thinks it is the final destination for mail sent to example.com, you need to remove that in your config. Post the output of the command

    Code:
    hostname
    as well as the contents of /etc/mail/local-host-names.
    「明後日の夕方には帰ってるからね。」


  5. #5
    Join Date
    Mar 2010
    Beans
    9
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Mail not being delivered externally

    Hostname in the case would be the domain without the extension.
    /etc/mail/local-host-names only contains localhost, i already checked this.
    /etc/hosts also only contains localhost
    Last edited by gertjuhh; March 9th, 2010 at 07:49 PM. Reason: Removed IP addresses

  6. #6
    Join Date
    Nov 2005
    Location
    Bordeaux, France
    Beans
    11,292
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Mail not being delivered externally

    Quote Originally Posted by gertjuhh View Post
    Hostname in the case would be the domain with the extension.
    Being 'rgbsystems'
    So you mean the hostname command returns rgbsystems.nl? If it does, that's your problem. You must give your machine a hostname in that domain (something.rgbsystems.nl).
    「明後日の夕方には帰ってるからね。」


  7. #7
    Join Date
    Nov 2006
    Location
    Belgium
    Beans
    3,025
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Mail not being delivered externally

    I agree with Bachstelze about your mail server thinking it's final destination for mydomain.com

    I don't know how to configure sendmail to fix this.
    Debian uses exim4, which would probably work with Ubuntu as well.
    If you decide to use this, you can run
    Code:
    dpkg-reconfigure exim4-config
    to set it up and (re-)configure it. Your best bet would be "no local delivery" and/or "domains this system should accept mail for:"(leave blank, or put only the server's FQDN)



    edit:
    didn't see Bachstelze post.
    you probably better try his suggestions first.
    Last edited by koenn; March 8th, 2010 at 09:03 PM.

  8. #8
    Join Date
    Mar 2010
    Beans
    9
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Mail not being delivered externally

    Quote Originally Posted by Bachstelze View Post
    So you mean the hostname command returns rgbsystems.nl? If it does, that's your problem. You must give your machine a hostname in that domain (something.rgbsystems.nl).
    Sorry i made a typo there...
    The exact output of the hostname command is 'rgbsystems' being the domain name without the extension.

    That being said, do i still need to change the server's hostname to something.rgbsystems.nl ?

    Thanks for the help thus far, much appreciated!
    Last edited by gertjuhh; March 8th, 2010 at 11:11 PM.

  9. #9
    Join Date
    Jun 2008
    Location
    North Carolina
    Beans
    271
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Mail not being delivered externally

    I am afraid that I can't offer more help, but take a look at the following: http://www.sendmail.org/sm-X/release.html#SMXREADME

    Sendmail X is the local delivery agent. About page 40 there is a section on using sendmail for sending mail only.

    I think your problem comes down to the fact that it thinks it is supposed to be the recipient for your domain and then it tries to use the local delivery agent. Instead you don't want it to use local delivery and instead to forward or relay to another SMTP.

  10. #10
    Join Date
    Mar 2010
    Beans
    9
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Mail not being delivered externally

    'Solved' my problem for now.
    Using PHPMailer with an SMTP config to our mail server.
    Will look into setting a mail server when i get some more spare time.
    Thanks for the help

Bookmarks

Posting Permissions

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