Postfix problem - cannot send e-mail

Discussion in 'Installation/Configuration' started by GeorgeG, May 29, 2014.

  1. GeorgeG

    GeorgeG New Member

    Hello All,

    I have a VPS where I've installed ISPConfig 3, following the instructions for The Perfect Server - Ubuntu 12.04 LTS (Apache2, BIND, Dovecot, ISPConfig 3) at: http://www.howtoforge.com/perfect-server-ubuntu-12.04-lts-apache2-bind-dovecot-ispconfig-3

    I have also installed the latest 3.0.5.4p1 patch, and roundcube following the instructions at http://www.howtoforge.com/using-roundcube-webmail-with-ispconfig-3-on-debian-wheezy-apache2

    While I can receive e-mail as expected, tested this with roundcube and thunderbird, I cannot send e-mails successfuly. When I click on the send icon in Roundcube, I get the green light, only to receive an "Undelivered Mail Returned to Sender" e-mail a couple of seconds later.

    The content of /etc/postfix/main.cf is as follows:
    the contents of /etc/postfix/master.cf is as follows:
    When I run netstat -tap I got the following output:
    Following is part of mail.log, showng the email getting bounced:
    When I telnet localhost 25, I get the following:
    and the output of iptables -L is:

    Any ideas on how to rectify this?

    Regards
    GeorgeG
     
    Last edited: May 29, 2014
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Your email system is woking fine, just the email was bounced by gmail. this can happen for various reasons e.g. you tried to use a gmail address as sender email address in roundcube or the hostname of your server does not exist in dns or the email domain of the sender address does not exist in dns or your ip address has no reverse record or your ip address is a dynamic ip.
     
  3. GeorgeG

    GeorgeG New Member

    Hello Till,

    Thanks for taking the time to look at this. Let me see If I can eliminate any of the hints you pointed out:

    - you tried to use a gmail address as sender email address in roundcube. That isn't the case really. Looking at mail.log the sender e-mail is as intended. btw I also e-mailed to another recipient with the same behavior.

    - the hostname of your server does not exist in dns. I have defined a DNS zone in IPConfig, where all the related hostnames are defined.

    - the email domain of the sender address does not exist in dns. The domain name of the sender is in the same zone I stated above.

    - your ip address has no reverse record. I checked the MX records with mxtoolbox.com and also did an smtp diagnosis there, which confirmed that "Reverse DNS matches SMTP Banner"

    - your ip address is a dynamic ip. That is not the case, the IP is static.

    Any more hints that I could check?

    Regards,
    GeorgeG
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Which resaon does gmail mention in the bounce message for not accepting your email?
     
  5. stevieb_

    stevieb_ New Member

    I had bounced emails from gmail when I moved servers across.
    I ended up configuring spf, dkim and dmarc.
    only with all three would gmail start accepting emails from the domain again. :s
     
  6. GeorgeG

    GeorgeG New Member

    Hello Till,

    This is the bounced message:
    The mail.log sayis nothing more than:
    Stevieb_, thanks for chipping in.
    I have already configured the spf record, but not dkim and dmarc. Although, when I tried to e-mail to another recipient (on a domain running a CentOS, Kloxo, qmail combination) I got the same response (if that makes any difference).

    Regards,
    GeorgeG
     
    Last edited: May 30, 2014
  7. stevieb_

    stevieb_ New Member

    If its happening on more than one domain its highly unlikely that it is/was the same issue as I was having.

    Mine was specific to gmail _after_ a server move / upgrade only implementing all the bits was I able to successfully receive emails to my gmail account.
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Which error message did you get back from this server?
    Are you able to send yourself a email (to the email address that you used to login to roundcube)?
     
  9. GeorgeG

    GeorgeG New Member

    Hello Till,

    Sending email to another recipient on the same domain, the e-mail gets delivered as expected.

    The error to the alternative domail is the same as with gmail, following is the log of an example attempt I just tried:
    Regards,
    GergeG
     
    Last edited: Jun 1, 2014
  10. Ghostdare

    Ghostdare Member

  11. GeorgeG

    GeorgeG New Member

    Hello Ghostdare,

    Just checked with intoDNS and can't see anything obvious.

    What do you think should I be looking for?


    Regrads,
    GeorgeG
     

Share This Page