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

Postfix Problem when sending mails from PHP site / Mail gets bounced

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by Chris Redfield, Aug 10, 2010.

  1. Chris Redfield

    Chris Redfield Guest

    0
     
    Hi all,

    i currently moved my website from a Plesk 8x Suse Professional Server to a Plesk 9.5 opensuse server...

    Mail send via SMTP Accounts that have been created via Plesk work fine and are being accepted by all tested external recipients.
    When my website tries to send a mail via php mail function the mail gets bounced. mail.info logfile in /var/logs/ says following:

    i guess that it gets bounced because it looks for domain name resolution for hXXXXXX.localdomain which is not a valid Domain...

    I would appreciate any hints very much!

    Thanks in advance,

    chrisred
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,556
    Likes Received:
    1,241
    Location:
    Novosibirsk, Russia
    Look at main Plesk maillog /usr/local/psa/var/log/maillog at least.
     
  3. Chris Redfield

    Chris Redfield Guest

    0
     
    this logfile shows the same thing :(
     
  4. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,556
    Likes Received:
    1,241
    Location:
    Novosibirsk, Russia
    Maybe this hXXXXXX.localdomain is defined in some web application settings?
     
  5. Chris Redfield

    Chris Redfield Guest

    0
     
    not that i know. afaik this seems to be the sender's domain name which should be replaced by postfix to the real domain name?
     
  6. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,556
    Likes Received:
    1,241
    Location:
    Novosibirsk, Russia
    Do you have IPv6 AAAA configured DNS records there?
     
  7. Chris Redfield

    Chris Redfield Guest

    0
     
    I have seen that there are some ipv6 records in DNS settings in YAST. Is this a problem?
    Is there a possibility to change these in Plesk as well?
     
  8. lvalics

    lvalics Silver Pleskian Plesk Guru

    36
    43%
    Joined:
    Jun 20, 2003
    Messages:
    965
    Likes Received:
    32
    Location:
    Romania
    I think you are sending the header of the mail in a wrong way and this is why not deliver it the mail. What mail package do you use to send mail?
     
  9. Chris Redfield

    Chris Redfield Guest

    0
     
    Hi, and thanks for your help.

    The Problem has now been solved. I modified the $mydomain value in the main.cf . Now outgoing mails are shown as sent from the right domain with a resolveable hostname.
     
  10. Sec.F

    Sec.F Guest

    0
     
    How has been solved the problem in main.cf

    Hi Chris can you please give me more details how you have been solved the problem of Postfix when sending mails from PHP site?
    In fact what changes have you made in the $mydomain value in the main.cf ?

    Thank you in advance!
     
Loading...