1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Server does not send mails to its own domain - why?

Discussion in 'Site & Server Administration' started by Multiplexor, Mar 14, 2013.

  1. #1
    Hello,

    I have some trouble with a root server with ubuntu and plesk 11.
    The server can be accessed via domain xyz.com and runs an online shop.
    It can send emails without any problems to other email domains than its own. That means that if it tries to send email to it will not be receieved (no spam or anything else like that, it is simply not there)

    Do you have an idea how can I analyze the problem?
     
    Multiplexor, Mar 14, 2013 IP
  2. Logist

    Logist Greenhorn

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    21
    #2
    When some mail servers are receiving a message, they'll connect to the sending domain's mail server and verify that the from address exists before accepting the message. In this case it looks like that check is failing.
     
    Logist, Mar 14, 2013 IP
  3. JoshDylan

    JoshDylan Well-Known Member

    Messages:
    133
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    130
    #3
    In order to trouble shoot the problem, you would actually need a Linux Administrator to take a look.
     
    JoshDylan, Mar 14, 2013 IP
  4. Multiplexor

    Multiplexor Greenhorn

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #4
    Hello Logist,

    I have adjusted those parameters. The default sender was before. Not it is the existing address . The changes are working fine with the php-mail-function. But if the to-address ist it is still not received :-(
     
    Multiplexor, Mar 15, 2013 IP
  5. Multiplexor

    Multiplexor Greenhorn

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #5
    Because of the urgency of the problem, I was motivated to solve it myself. And this is how:

    I found in /var/log/mail.log that does not leave the server at all: relay=local

    So I added in /etc/postfix/main.cf the following line:
    relay_domains = $myhostname

    (there is also this line already existing: myhostname = xyz.com)
    After that I tried to send an email and found in the log: relay=plesk_virtual

    So I found the line saying: virtual_transport = plesk_virtual
    and blatantly changed it to: virtual_transport = relay

    And voila, it works!

    Helpful info is found in http://www.postfix.org/ADDRESS_REWRITING_README.html#resolve
    in the section "Resolve address to destination"
     
    Multiplexor, Mar 15, 2013 IP
  6. cveks

    cveks Member

    Messages:
    141
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    28
    #6
    Probably wrong config and bad setup. Thats why I dont like Plesk. Too buggy.
     
    cveks, Mar 16, 2013 IP
  7. Multiplexor

    Multiplexor Greenhorn

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #7
    There is a new problem! After every rebuild of main.cf Plesk overwrites this setting such that we are having again:
    virtual_transport = plesk_virtual
    Does somebody knows where plesk stores a setting or template for this?
     
    Multiplexor, Mar 25, 2013 IP