1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Urgent: Need help with postfix mail delivery for local domains on external servers

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by mirage, Feb 9, 2009.

  1. mirage

    mirage Guest

    0
     
    It appears that any email entered on a webform, send to a user in that domain is in fact bounced and send to the bouce address.

    In the CP, I have mail hosting disabled for these domains. But for some reason, the postfix configurations appears to consider these domains local and attempts to deliver mail on the same machine. Ergo, the mail fails and messages are bounced to the admin.

    Question:
    How do I get postfix to deliver mail for local domains which is hosted externally?

    Thanks J
     
  2. Gene Steinberg

    Gene Steinberg Regular Pleskian

    25
    57%
    Joined:
    Dec 9, 2008
    Messages:
    119
    Likes Received:
    0
    Turn off the email for each domain.

    Peace,
    Gene
     
  3. mirage

    mirage Guest

    0
     
    Thanks - but as I mentioned - I do have email turned off for these domains.

    The fix was this (although it feels wrong to me):

    While I had email turned off, I had set the catchall address. Switch that to reject, caused the messages to be delivered. Seems wrong.

    I'd say that with email hosting turned 'on' + a catchall address should attempt to deliver to catchall or bounce. With email hosting turned off, nothing should be checked locally and all delivery handling should be deferred to the remote server identified by the MX's.

    Cheers,
    j
     
  4. dash

    dash Regular Pleskian Staff Member

    28
    40%
    Joined:
    Sep 26, 2007
    Messages:
    204
    Likes Received:
    47
    In case of mail service for domain is switched off the domain name should not persists in your virtual_domains
    You can check it with postmap -s /var/spool/postfix/plesk/virtual_domains or postmap -s /var/lib/plesk/mail/postfix/virtual_domains depending on your OS. (see /etc/postfix/main.cf for exactly path)

    If the domain name persists in virtual_domains, then postfix will treat it as "local"
     
  5. belyakov

    belyakov Guest

    0
     

    Hi,

    Ok, and how to remove the domain from there in that case? The service is switched off and domain still in postmap!

    Thanks.
     
  6. DavidT

    DavidT Guest

    0
     
    Can't you just edit the file in question manually and remove the domains if needed from the file?
     
Loading...