Email Troubleshooting

Discussion in 'Installation/Configuration' started by lightnb, Jun 14, 2007.

  1. lightnb

    lightnb New Member

    I have ISP config on a 'perfect' Ubuntu 7.04 server.

    I can't seem to get the email to work though. When I create an account in outlook and test the settings, it finds the server, but won't accept the user name and password.

    Ive tried the user names: user1_admin, user1_admin:bluefishgardens, user1_admin:bluefishgardens.com and still no luck.

    When I try to send a message to my servers email '[email protected]' from my regular bellsouth account, it bounces with the following error:

    How do I troubleshoot email issues?
     
    Last edited: Jun 14, 2007
  2. falko

    falko Super Moderator Howtoforge Staff

    Is [email protected] listed in /etc/postfix/virtusertable? Is user1_admin the correct username? Normally it is web1_admin.

    What's the output of
    Code:
    postconf -n
    ?
     
  3. lightnb

    lightnb New Member

    no, the user name is 'web1_joanne' which is the 'catch all' (supposedly). Sorry, that was a typo- I meant 'web1' not 'user1' in the previous post. I've also tried web1_joanne, web1_joanne:bluefishgardens.com


    output of postconf -n:

    Code:
    alias_database = hash:/etc/aliases
    alias_maps = hash:/etc/aliases
    append_dot_mydomain = no
    biff = no
    broken_sasl_auth_clients = yes
    config_directory = /etc/postfix
    inet_interfaces = all
    inet_protocols = all
    mailbox_command = procmail -a "$EXTENSION"
    mailbox_size_limit = 0
    mydestination = /etc/postfix/local-host-names
    mynetworks = 127.0.0.0/8
    myorigin = /etc/mailname
    recipient_delimiter = +
    relayhost =
    smtp_tls_note_starttls_offer = yes
    smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
    smtp_use_tls = yes
    smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_local_domain =
    smtpd_sasl_security_options = noanonymous
    smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
    smtpd_tls_auth_only = no
    smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
    smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
    smtpd_tls_loglevel = 1
    smtpd_tls_received_header = yes
    smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
    smtpd_tls_session_cache_timeout = 3600s
    smtpd_use_tls = yes
    tls_random_source = dev:/dev/urandom
    
    I've also tried:

     
    Last edited: Jun 15, 2007
  4. falko

    falko Super Moderator Howtoforge Staff

    The line virtual_maps = hash:/etc/postfix/virtusertable is missing in /etc/postfix/main.cf. Please run
    Code:
    postconf -e 'virtual_maps = hash:/etc/postfix/virtusertable'
    /etc/init.d/postfix restart
     
  5. lightnb

    lightnb New Member

    Thanks! Ran those commands and I can get Outlook to connect now. :)

    I still can't send mail to [email protected] though... It's bouncing back with a "sorry, relaying denied from your location [205.152.59.68] (#5.7.1)" message.

    I tried from a couple different mail accounts and they all do the same thing (with a different IP address in the brackets).
     
  6. lightnb

    lightnb New Member

    Update: I turned off the server and sent it an email. Same message... I guess that means it isn't an issue on my server?
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Your IP address is listed as spam sender on several blacklists, that probably the reason why the other mailserver rejects your emails.
     
  8. lightnb

    lightnb New Member

    You mean 68.209.105.89 is blacklisted as a recipient? How does that happen? And what can I do to get it off the blacklist(s)?
     
  9. tristanlee85

    tristanlee85 New Member

  10. lightnb

    lightnb New Member

    205.152.59.68 isn't my ip address though... that's the ip address in the bounce error, but i don't know where it's getting that address from.

    My servers external ip is 68.209.105.89 and it doesn't show up in red on that tool. What can I do?
     
  11. falko

    falko Super Moderator Howtoforge Staff

    Is that maybe the IP address of the email client you use to send the mails?
     
  12. lightnb

    lightnb New Member

    I've been trying using my bellsouth email address....



    but, If I send a message from my web mail account for one of my commercially hosted web sites, I get:

    Code:
    joanne['at']bluefishgardenss['dot']com
        SMTP error from remote mail server after RCPT TO:<joanne['at']bluefishgardenss['dot']com>:
        host smtp.where.secureserver.net [64.202.166.12]:
        553 sorry, relaying denied from your location [69.61.67.90] (#5.7.1)
    
    Same message, different ip address.
     
    Last edited: Jun 18, 2007
  13. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the line that appear in your mail log when you send a message.
     
  14. lightnb

    lightnb New Member

    This as the most recent section of /var/log/mail.log:

    Code:
    Jun 19 05:50:51 BlueFish freshclam[4693]: Received signal: wake up
    Jun 19 05:50:51 BlueFish freshclam[4693]: ClamAV update process started at Tue Jun 19 05:50:51 2007
    Jun 19 05:50:51 BlueFish freshclam[4693]: SECURITY WARNING: NO SUPPORT FOR DIGITAL SIGNATURES
    Jun 19 05:50:51 BlueFish freshclam[4693]: See the FAQ at http://www.clamav.net/support/faq for an explanation.
    Jun 19 05:50:51 BlueFish freshclam[4693]: Your ClamAV installation is OUTDATED!
    Jun 19 05:50:51 BlueFish freshclam[4693]: Local version: 0.90.2 Recommended version: 0.90.3
    Jun 19 05:50:51 BlueFish freshclam[4693]: DON'T PANIC! Read http://www.clamav.net/support/faq
    Jun 19 05:50:51 BlueFish freshclam[4693]: main.cvd is up to date (version: 43, sigs: 104500, f-level: 14, builder: sven)
    Jun 19 05:50:51 BlueFish freshclam[4693]: daily.inc is up to date (version: 3466, sigs: 23378, f-level: 16, builder: ccordes)
    Jun 19 05:50:51 BlueFish freshclam[4693]: --------------------------------------
    Jun 19 07:49:14 BlueFish courierpop3login: Connection, ip=[::ffff:192.168.5.251]
    Jun 19 07:49:14 BlueFish courierpop3login: LOGIN, user=web1_joanne, ip=[::ffff:192.168.5.251]
    Jun 19 07:49:14 BlueFish courierpop3login: LOGOUT, user=web1_joanne, ip=[::ffff:192.168.5.251], top=0, retr=0, rcvd=24, sent=96, time=0
    Jun 19 07:49:17 BlueFish courierpop3login: Connection, ip=[::ffff:192.168.5.251]
    Jun 19 07:49:17 BlueFish courierpop3login: LOGIN, user=web1_joanne, ip=[::ffff:192.168.5.251]
    Jun 19 07:49:17 BlueFish courierpop3login: LOGOUT, user=web1_joanne, ip=[::ffff:192.168.5.251], top=0, retr=0, rcvd=24, sent=96, time=0
    Jun 19 07:54:58 BlueFish courierpop3login: Connection, ip=[::ffff:192.168.5.251]
    Jun 19 07:54:58 BlueFish courierpop3login: LOGIN, user=web1_joanne, ip=[::ffff:192.168.5.251]
    Jun 19 07:54:58 BlueFish courierpop3login: LOGOUT, user=web1_joanne, ip=[::ffff:192.168.5.251], top=0, retr=0, rcvd=24, sent=96, time=0
    Jun 19 07:56:29 BlueFish courierpop3login: Connection, ip=[::ffff:192.168.5.251]
    Jun 19 07:56:29 BlueFish courierpop3login: LOGIN, user=web1_joanne, ip=[::ffff:192.168.5.251]
    Jun 19 07:56:29 BlueFish courierpop3login: LOGOUT, user=web1_joanne, ip=[::ffff:192.168.5.251], top=0, retr=0, rcvd=24, sent=96, time=0
    Jun 19 07:56:33 BlueFish courierpop3login: Connection, ip=[::ffff:192.168.5.251]
    Jun 19 07:56:33 BlueFish courierpop3login: LOGIN, user=web1_joanne, ip=[::ffff:192.168.5.251]
    Jun 19 07:56:33 BlueFish courierpop3login: LOGOUT, user=web1_joanne, ip=[::ffff:192.168.5.251], top=0, retr=0, rcvd=24, sent=96, time=0
     
  15. falko

    falko Super Moderator Howtoforge Staff

    There are no Postfix lines in there, just Courier and freshclam. We need Postfix logs.
     
  16. lightnb

    lightnb New Member

    Where do I get those from? Different File?

    What I posted was all that's in '/var/log/mail.log'... it just repeats over and over again with slight deviation.
     
  17. falko

    falko Super Moderator Howtoforge Staff

    No, it's the same log file.

    If there are no Postfix lines in your mail log, this means that the mails you send to your server don't reach the server at all. I guess this is due to wrong MX records. You can check the MX records of your domains like this:
    Code:
    dig mx yourdomain.com
     
  18. lightnb

    lightnb New Member

    Code:
    ; <<>> DiG 9.3.4 <<>> mx bluefishgardens.com
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59986
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;bluefishgardens.com.           IN      MX
    
    ;; ANSWER SECTION:
    bluefishgardens.com.    3600    IN      MX      10 mailstore1.secureserver.net.
    bluefishgardens.com.    3600    IN      MX      0 smtp.secureserver.net.
    
    ;; Query time: 140 msec
    ;; SERVER: 205.152.144.23#53(205.152.144.23)
    ;; WHEN: Thu Jun 21 13:13:34 2007
    ;; MSG SIZE  rcvd: 101
    
    
     
  19. till

    till Super Moderator Staff Member ISPConfig Developer

    And smtp.secureserver.net and mailstore1.secureserver.net are your domains that point to your server? If not, you must tell your provider to reconfigure the MX records to point to your server.
     

Share This Page