Email issues

Discussion in 'Server Operation' started by jopa123, Feb 13, 2013.

  1. jopa123

    jopa123 New Member

    Hey guys,

    Again. Thanks for a great product and great help. I know it is all voluntary and it is much appreciated.

    My server is really not a money maker but I have put in some long hours on making the 15 or so sites on it work. It's more of a learning experience for me.

    My setup is Ubuntu 9.04 and ISPConfig 3 per - http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-3

    I recently found that I was having email issues. I can't receive any emails to any of the domains that I have setup on my server. I did some research and it seems that this is a semi-common issue. I've searched through my logs to see if I can isolate the issue but don't see anything that stands out to me and most fixes i find either do not apply to my distro or I'm not comfortable trying them. My Linux skills are very limited.

    Any advice or help? Also, should I backup and reinstall a newer distro as this one is quite old?

    Any and all help is greatly appreciated.

    Thanks.
     
  2. jopa123

    jopa123 New Member

    Additional info

    I don't think I can update/upgrade ClamAV with this distro.
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    This is not the reason for your issue. It does not matter if clamav reports that it is outdated as long as freshclam downloads new updates.

    Regarding your original issue, please post the exact error messages from your mail.log file.
     
  4. jopa123

    jopa123 New Member

    Thanks for easing my mind on the ClamAv issue

    Thanks, Till

    I don't see any error messages in mail.log but 'postqueue -p' does show this type of thing:



    11A5C322001 54056 Wed Feb 13 13:49:14 mail@el.linkedin.com
    (temporary failure. Command output: ERR: authdaemon: s_connect() failed: Permission denied /usr/bin/maildrop: Unable to open mailbox.)
    shawn@mydomain.com

    43DEC322006 2515 Wed Feb 13 13:54:09 me@myemailaddress.com
    (temporary failure. Command output: ERR: authdaemon: s_connect() failed: Permission denied /usr/bin/maildrop: Unable to open mailbox.)
    shawn@mydomain.com

    45C79322003 21092 Wed Feb 13 13:49:14 returnto@yelp.com
    (temporary failure. Command output: ERR: authdaemon: s_connect() failed: Permission denied /usr/bin/maildrop: Unable to open mailbox.)
    shawn@mydomain.com

    CD7A432200D 20796 Wed Feb 13 19:29:46 3Bz4cURQKCYImuumrkgrkxzy-tuxkvr4muumrk.iussgxqkzotmiuruA.ius@alerts.bounces.google.com
    (temporary failure. Command output: ERR: authdaemon: s_connect() failed: Permission denied /usr/bin/maildrop: Unable to open mailbox.)
    shawn@mydomain.com

    CEA8A32200A 6935 Wed Feb 13 14:08:23 bounced@secureserver.net
    (temporary failure. Command output: ERR: authdaemon: s_connect() failed: Permission denied /usr/bin/maildrop: Unable to open mailbox.)
    shawn@mydomain.com

    F0A5E322005 24858 Wed Feb 13 13:49:13 update+kjdmjm5vkijm@facebookmail.com
    (temporary failure. Command output: ERR: authdaemon: s_connect() failed: Permission denied /usr/bin/maildrop: Unable to open mailbox.)
    shawn@mydomain.com

    DF42B32200C 2456 Wed Feb 13 17:02:32 me@myemailaddress.com
    (temporary failure. Command output: ERR: authdaemon: s_connect() failed: Permission denied /usr/bin/maildrop: Unable to open mailbox.)
    shawn@mydomain.com

    DBACC322010 3492 Thu Feb 14 06:03:55 fZbBvcWzc105@duarib.fr
    (temporary failure. Command output: ERR: authdaemon: s_connect() failed: Permission denied /usr/bin/maildrop: Unable to open mailbox.)
    shawn@mydomain.com

    D177E32200E 2119 Wed Feb 13 21:51:47 suhel@yahoo.com
    (temporary failure. Command output: ERR: authdaemon: s_connect() failed: Permission denied /usr/bin/maildrop: Unable to open mailbox.)
    email@mydomain.com

    ABAEB322002 2455 Wed Feb 13 13:45:08 me@myemailaddress.com
    (temporary failure. Command output: ERR: authdaemon: s_connect() failed: Permission denied /usr/bin/maildrop: Unable to open mailbox.)
    shawn@mydomain.com

    A5A7C10804C 2455 Wed Feb 13 17:09:10 me@myemailaddress.com
    (temporary failure. Command output: ERR: authdaemon: s_connect() failed: Permission denied /usr/bin/maildrop: Unable to open mailbox.)
    shawn@mydomain.com

    A5845322009 2453 Wed Feb 13 13:54:11 me@myemailaddress.com
    (temporary failure. Command output: ERR: authdaemon: s_connect() failed: Permission denied /usr/bin/maildrop: Unable to open mailbox.)
    shawn@mydomain.com

    73FAE322008 2455 Wed Feb 13 13:54:10 me@myemailaddress.com
    (temporary failure. Command output: ERR: authdaemon: s_connect() failed: Permission denied /usr/bin/maildrop: Unable to open mailbox.)
    shawn@mydomain.com



    Thanks
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Run:

    ls -la /var/vmail

    it should show you a list of directories that have the same names then your email domains. If you see the folders exist, run this command to recursively fix all permissions:

    chown -R vmail:vmail /var/vmail
     
  6. jopa123

    jopa123 New Member

    Didn't seem to work

    I ran the command and senta test email and this line was added to 'postqeue -p'


    AFA03322012 2455 Thu Feb 14 09:08:15 my@emailaddress.com
    (temporary failure. Command output: ERR: authdaemon: s_connect() failed: Permission denied /usr/bin/maildrop: Unable to open mailbox.)
    shawn@mydomain.com
     
  7. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    Check the permissions for maildrop. It needs to be setuid root. chmod +s /usr/bin/maildrop.
     
  8. jopa123

    jopa123 New Member

    Thanks, Florian030 but that didn't seem to work either.

    Here's the new messages in mail.err

    Feb 19 10:18:19 server1 last message repeated 3039 times
    Feb 19 10:19:20 server1 last message repeated 9393 times
    Feb 19 10:20:21 server1 last message repeated 10178 times
    Feb 19 10:21:22 server1 last message repeated 9642 times
    Feb 19 10:22:23 server1 last message repeated 6266 times
    Feb 19 10:23:24 server1 last message repeated 5786 times
    Feb 19 10:24:25 server1 last message repeated 6133 times
    Feb 19 10:25:26 server1 last message repeated 5442 times
    Feb 19 10:26:27 server1 last message repeated 2344 times
    Feb 19 10:27:28 server1 last message repeated 539 times
    Feb 19 10:27:34 server1 last message repeated 3 times

    And here is the mail.log file after i sent a test message today (Feb 22):


    Feb 21 06:46:52 server1 postfix/qmgr[14337]: CB590322020: from=<me@localhost.com>, size=5329, nrcpt=1 (queue active)
    Feb 21 06:46:52 server1 postfix/qmgr[14337]: 8DF4F10855B: from=<>, size=4573, nrcpt=1 (queue active)
    Feb 21 06:46:52 server1 postfix/pipe[10161]: CB590322020: to=<me@mydomain.com>, orig_to=<contact@mydomaincom>, relay=maildrop, delay=315893, delays=315893/0.01/0/0.03, dsn=4.3.0, status=deferred (temporary failure. Command output: ERR: authdaemon: s_connect() failed: Permission denied /usr/bin/maildrop: Unable to open mailbox. )
    Feb 21 06:46:52 server1 postfix/smtp[10162]: 8DF4F10855B: to=<myhomeemail@charter.net>, relay=ib1.charter.net[216.33.127.20]:25, delay=231600, delays=231600/0.01/0.15/0, dsn=4.0.0, status=deferred (host ib1.charter.net[216.33.127.20] refused to talk to me: 421 imp05 charter.net ?? charter.net connection refused from [68.113.203.x] E1210)
    Feb 21 06:47:06 server1 postfix/smtpd[10186]: connect from localhost.localdomain[127.0.0.1]
    Feb 21 06:47:06 server1 postfix/smtpd[10186]: 75A0F32201A: client=localhost.localdomain[127.0.0.1]
    Feb 21 06:47:06 server1 postfix/cleanup[10000]: 75A0F32201A: message-id=<20130221124650.A2A61322019@server1.mymaindomain.com>
    Feb 21 06:47:06 server1 postfix/qmgr[14337]: 75A0F32201A: from=<root@server1.mymaildomain.com>, size=1596, nrcpt=1 (queue active)

    I'm beginning to think it may be an issue with my internet provider or my DNS zone files at the registrar

    As always, any help is appreciated.
     
  9. falko

    falko Super Moderator ISPConfig Developer

    Did you check the permissions of the mailbox and all directories in the path to the mailbox?
     
  10. jopa123

    jopa123 New Member

    Falko,

    I'm not sure what you mean by "the mailbox and all other directories in the path of the mail box". Are these "virtual" mailboxes or is there an actual folder/file for each box?

    Here is the result of 'ls -la /var/vmail'
    total 80
    drwxr-xr-x 15 vmail vmail 4096 2013-02-26 17:09 .
    drwxr-xr-x 17 root root 4096 2012-10-16 09:22 ..
    -rw-r--r-- 1 vmail vmail 220 2009-03-02 08:22 .bash_logout
    -rw-r--r-- 1 vmail vmail 3115 2009-03-02 08:22 .bashrc
    drwx------ 4 vmail vmail 4096 2012-06-18 11:16 site1.com
    drwx------ 3 vmail vmail 4096 2012-06-14 12:26 site2.info
    drwx------ 3 vmail vmail 4096 2012-06-14 12:31 site3.info
    drwx------ 3 vmail vmail 4096 2012-06-14 12:26 site4.info
    drwxr-xr-x 3 vmail vmail 4096 2012-06-14 12:32 site5.info
    drwx------ 3 vmail vmail 4096 2012-06-14 12:27 site6.info
    drwxr-xr-x 3 vmail vmail 4096 2012-06-14 12:27 site7.info
    drwx------ 3 vmail vmail 4096 2012-06-14 12:28 site8.info
    drwx------ 3 vmail vmail 4096 2012-06-14 12:29 site9.info
    drwx------ 3 vmail vmail 4096 2012-06-14 12:29 site10.info
    -rw------- 1 vmail vmail 1454 2013-02-13 17:01 .mailfilter
    -rw-r--r-- 1 vmail vmail 1382 2013-02-13 17:01 .mailfilter~
    drwxr-xr-x 13 vmail vmail 4096 2013-01-13 12:11 mailfilters
    -rw-r--r-- 1 vmail vmail 675 2009-03-02 08:22 .profile
    drwx------ 5 vmail vmail 4096 2013-01-02 13:34 site11.com
    drwx------ 2 vmail vmail 4096 2012-06-14 12:25 site12.com
     
  11. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    Each mailbox has it own directory / file - depends on your setup.

    The permissions in /var/vmail are ok.

    Make sure, that /var/vmail and everyting inside /var/vmail/$DOMAIN is also owned by vmail.vmail. You can simply run
    Code:
    chown -R vmail.vmail /var/vmail
     
  12. jopa123

    jopa123 New Member

    Fixed. Almost

    Hey guys,

    Thanks for all of the help. I had someone with more Linux knowledge than I help me out and it appear s that my issue stemmed from a combination of an automatic update of maildrop and filters in place by my ISP.

    I'm not absolutely sure what the update broke. I think it is the way that maildrop works with postfix. But we 'downgraded' it and emails began to go through.

    But forwarded emails still weren't being delivered to my home address. I found my ISP has filters in place to prevent businesses from using a residential internet plan.

    Thanks for all of your help. I truly appreciate your work.
     

Share This Page