could not receive email

Discussion in 'Server Operation' started by azqnow, Nov 3, 2010.

  1. azqnow

    azqnow New Member

  2. Mark_NL

    Mark_NL Member

    i've seen millions of these posts in the past .. about 60% of them the problem was amavisd not running ..

    check if all services are up and running, check your /var/log/maillog etc ...

    in your case, yo skipped amavis, but did you also skip the part where you define the transport TO amavis?
     
  3. azqnow

    azqnow New Member

    yes i also skipped these:

    postconf -e 'content_filter = amavis:[127.0.0.1]:10024'
    postconf -e 'receive_override_options = no_address_mappings'


    and editing

    /etc/postfix/master.cf
     
  4. Mark_NL

    Mark_NL Member

    Show me the part of the mail.log where you receive the mail.
     
  5. azqnow

    azqnow New Member

    that's the problem, i dont get to receive the email, the last line from the mail log is from the successful log in
     
  6. falko

    falko Super Moderator Howtoforge Staff

    Please make sure that the MX record of your domain is pointing to the correct server. You can check that with dig:
    Code:
    dig mx yourdomain.com
     
  7. azqnow

    azqnow New Member

    i used dig mx mydomain.com

    it returned
    mydomain.com. 3600 IN MX 10 mydomain.com.


    the only reason the folders got created because i ran this..
    maildirmake /home/vmail/mydomain.com/myuser/

    without that i could not login.


    the emails that i send using the email could not be received in gmail or yahoo.. i haven't tried other emails.. i checked spam folders..

    what should i do?

    thanks!
     
  8. falko

    falko Super Moderator Howtoforge Staff

    Please check if your server is blacklisted: http://mxtoolbox.com/blacklists.aspx
     
  9. azqnow

    azqnow New Member

    all green except.

    CYBERLOGIC TIMEOUT ERROR, Reponse code=2 0
    EMAILBASURA TIMEOUT 0
    NOMOREFUNN TIMEOUT 0
    SPAMRBL TIMEOUT 0


    i mean, i could send using squirrelmail and i could receive mails sent to my gmail and yahoo... but i could not receive emails to my squirrelmail.. i have mx records on my domain and it does not seem to be blacklisted too..
     
  10. falko

    falko Super Moderator Howtoforge Staff

    Any errors in your mail log? Are you absolutely sure that your MX record is fine?
     
  11. azqnow

    azqnow New Member

    what error should i be expecting? i could not receive mail in my squirrelmail...

    here is my /var/log/maillog

    Dec 9 02:19:42 myserverdomain authdaemond: SQL query: SELECT email, password, "", 5000, 5000, "/home/vmail", CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/'), quota, "", "" FROM users WHERE email = '[email protected]'
    Dec 9 02:19:42 myserverdomain authdaemond: password matches successfully
    Dec 9 02:19:42 myserverdomain authdaemond: authmysql: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/home/vmail, [email protected], fullname=<null>, maildir=myserverdomain.com/mytestuser01/, quota=10485760, options=<null>
    Dec 9 02:19:42 myserverdomain authdaemond: Authenticated: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/home/vmail, [email protected], fullname=<null>, maildir=myserverdomain.com/mytestuser01/, quota=10485760, options=<null>
    Dec 9 02:19:42 myserverdomain imapd: LOGIN, [email protected], ip=[::ffff:127.0.0.1], port=[49949], protocol=IMAP
    Dec 9 02:19:42 myserverdomain imapd: LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=119, sent=900, time=0
     
  12. azqnow

    azqnow New Member

    ok, i sent an email thru gmail... hoping that it would show something up in maillog, because i still can't receive emails in my squirrelmail...

    when i terminated "tail"ing of maillog, it says this:

    You have new mail in /var/spool/mail/mytestuser01


    my inbox is rerouted? how do i fix this?


    thanks
     
  13. falko

    falko Super Moderator Howtoforge Staff

    Do you have any postfix errors in mail log? You posted lines from authdaemond and imapd, but not from postfix.
     
  14. azqnow

    azqnow New Member

    i do not have any problem sending mail.. but i could not receive from my squirrelmail..

    here is the log including postfix

    Dec 9 23:40:34 myserverdomain authdaemond: authmysql: trying this module
    Dec 9 23:40:34 myserverdomain authdaemond: SQL query: SELECT email, password, "", 5000, 5000, "/home/vmail", CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/'), quota, "", "" FROM users WHERE email = '[email protected]'
    Dec 9 23:40:34 myserverdomain authdaemond: password matches successfully
    Dec 9 23:40:34 myserverdomain authdaemond: authmysql: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/home/vmail, [email protected], fullname=<null>, maildir=myserverdomain.com/mytestuser01/, quota=10485760, options=<null>
    Dec 9 23:40:34 myserverdomain authdaemond: Authenticated: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/home/vmail, [email protected], fullname=<null>, maildir=myserverdomain.com/mytestuser01/, quota=10485760, options=<null>
    Dec 9 23:40:34 myserverdomain imapd: LOGIN, [email protected], ip=[::ffff:127.0.0.1], port=[43865], protocol=IMAP
    Dec 9 23:40:34 myserverdomain imapd: LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=119, sent=900, time=0
    Dec 9 23:40:34 myserverdomain postfix/smtp[21622]: A2151381A9: to=<[email protected]>, relay=gmail-smtp-in.l.google.com[74.125.95.27]:25, delay=0.43, delays=0.04/0.01/0.05/0.32, dsn=2.0.0, status=sent (250 2.0.0 OK 1291937905 s9si6036906ibe.55)
    Dec 9 23:40:34 myserverdomain postfix/qmgr[8068]: A2151381A9: removed



    thanks
     
  15. falko

    falko Super Moderator Howtoforge Staff

    I know, but Postfix is responsible for accepting the mail and putting it into the mailbox from where it is fetched by your imapd.

    Do you have more Postfix lines from the log?
     
  16. azqnow

    azqnow New Member

    maillog, after sending email from gmail

    Dec 10 23:58:12 mydomain postfix/smtpd[24811]: connect from mail-iw0-f170.google.com[209.85.214.170]
    Dec 10 23:58:12 mydomain postfix/trivial-rewrite[24815]: warning: do not list domain mydomain.com in BOTH mydestination and virtual_mailbox_domains
    Dec 10 23:58:12 mydomain postfix/smtpd[24811]: 88189381A9: client=mail-iw0-f170.google.com[209.85.214.170]
    Dec 10 23:58:12 mydomain postfix/cleanup[24820]: 88189381A9: message-id=<[email protected]>
    Dec 10 23:58:12 mydomain postfix/qmgr[8068]: 88189381A9: from=<[email protected]>, size=2005, nrcpt=1 (queue active)
    Dec 10 23:58:12 mydomain postfix/trivial-rewrite[24815]: warning: do not list domain mydomain.com in BOTH mydestination and virtual_mailbox_domains
    Dec 10 23:58:12 mydomain postfix/local[24822]: 88189381A9: to=<[email protected]>, relay=local, delay=0.14, delays=0.12/0.02/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
    Dec 10 23:58:12 mydomain postfix/qmgr[8068]: 88189381A9: removed
    Dec 10 23:58:42 mydomain postfix/smtpd[24811]: disconnect from mail-iw0-f170.google.com[209.85.214.170]

    i tried to remove the domain from mysql... re-sent and it did not work...

    then i tried this:
    postconf -e 'mydestination = localhost, localhost.localdomain'


    and ran all of this:

    /etc/init.d/httpd start
    /etc/init.d/sendmail stop
    /usr/sbin/postfix reload
    /etc/init.d/postfix restart
    /etc/init.d/saslauthd restart
    /etc/init.d/courier-authlib restart
    /etc/init.d/courier-imap restart


    i could now receive email! and it creates it's own folder in /home/vmail/!!!!


    it is now working!!! thank you so much!

    one more question, is that a good practice? removing my own domain in mydestination?
     
  17. falko

    falko Super Moderator Howtoforge Staff

    Yes - if it's listed in your database already.
     

Share This Page