ISPsystem.com Forums

ISPsystem.com Forums (http://forum.ispsystem.com//index.php)
-   Troubleshooting (http://forum.ispsystem.com//forumdisplay.php?f=11)
-   -   maildrop link() failed (http://forum.ispsystem.com//showthread.php?t=2158)

ispdodo 10-31-2013 02:47 PM

failing to receive incoming email messages
 
Under FreeBSD 9.2 and ispmanager fresh installation never can receive any email to users.

/var/log/maillog shows this during receiving new messages:

Code:

Oct 31 07:33:49 K515 sm-mta[56601]: STARTTLS=server, relay=mail-wi0-f194.google.com [209.85.212.194], version=TLSv1/SSLv3, verify=FAIL, cipher=RC4-SHA, bits=128/128
Oct 31 07:33:50 K515 sm-mta[56601]: r9VBXm2D056601: from=<XXX@gmail.com>, size=1698, class=0, nrcpts=1, msgid=<1718077694.20131031043306@gmail.com>, proto=ESMTP, daemon=IPv4, relay=mail-wi0-f194.google.com [209.85.212.194]
Oct 31 07:33:50 K515 maildrop[56603]: link() failed.
Oct 31 07:33:50 K515 sm-mta[56602]: r9VBXm2D056601: to=\\virtuser_1006, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32008, dsn=4.0.0, stat=Deferred: local mailer (/usr/local/bin/maildrop) exited with EX_TEMPFAIL

this situation repeats with every incoming email message regardless any mailbox or domain

for reference here is the log of creating email box
Quote:

Oct 31 08:42:06 [57157:7] INFO Request [178.33.42.134][root] 'name=test&domain=XXX.com&aliases=&aliases_list=&p asswdgen=*&passwd=*&confirmgen=*&confirm=*&quota=0 &forward=&forward_list=&func=email.edit&elid=&sok= ok'
Oct 31 08:42:06 [57157:7] ../../src/ispmgr/core/ispmgr.cpp:746 TRACE Rebuild AccountCache force[false] pgen[1] cgen[18]
Oct 31 08:42:06 [57157:7] ../../src/ispmgr/core/ispmgr.cpp:922 DEBUG Total accounts 2
Oct 31 08:42:06 [57157:7] ../../src/mgr/core/mgrconf.cpp:166 TRACE Add config '/etc/master.passwd' for commit
Oct 31 08:42:06 [57157:7] ../../src/mgr/core/tdata.cpp:1433 TRACE RecordSet::Post(insert) rsname='pop3user' key='test@XXX.com'
Oct 31 08:42:06 [57157:7] ../../src/mgr/core/tdata.cpp:1433 TRACE RecordSet::Post(insert) rsname='mailbox' key='test@XXX.com'
Oct 31 08:42:06 [57157:7] ../../src/mgr/core/tdata.cpp:1433 TRACE RecordSet::Post(insert) rsname='mailalias' key='virtuser_1007'
Oct 31 08:42:06 [57157:7] EXTINFO Execute (/usr/local/sbin/saslpasswd2 -p -a Sendmail -c -u XXX.com test) return=0 exited
Oct 31 08:42:06 [57157:7] ../../src/mgr/core/mgrconf.cpp:166 TRACE Add config '/usr/local/ispmgr/etc/ispmgr.conf' for commit
Oct 31 08:42:06 [57157:7] ../../src/ispmgr/email/sendmail.cpp:1477 DEBUG aliases users size = 1
Oct 31 08:42:06 [57157:7] ../../src/mgr/core/mgrconf.cpp:130 TRACE Save configs to pull up events
Oct 31 08:42:06 [57157:7] ../../src/mgr/core/mgrconf.cpp:133 TRACE MgrConfSave: file: /usr/local/ispmgr/etc/ispmgr.conf
Oct 31 08:42:06 [57157:7] EXTINFO Execute (/usr/sbin/pwd_mkdb -p /etc/master.passwd) return=0 exited
Oct 31 08:42:06 [57157:7] ../../src/mgr/core/mgrconf.cpp:133 TRACE MgrConfSave: file: /etc/master.passwd
Oct 31 08:43:06 [57157:7] EXTINFO Execute (/usr/bin/newaliases) return=0 exited
Oct 31 08:43:06 [57157:7] EXTINFO Execute (/usr/sbin/makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable) return=0 exited
Oct 31 08:43:06 [57157:7] ../../src/mgr/core/mgrconf.cpp:69 TRACE Commit configs
Oct 31 08:43:06 [57157:7] ../../src/mgr/core/mgrconf.cpp:93 TRACE deleted /usr/local/ispmgr/etc/.ispmgr.conf.9682563282, filename=/usr/local/ispmgr/etc/ispmgr.conf
Oct 31 08:43:06 [57157:7] EXTINFO Execute (/usr/bin/ci "-m create by process with pid 57157" -nREV_2013_10_31_57157_7 var/cbackup//usr/local/ispmgr/etc/ispmgr.conf) return=0 exited
Oct 31 08:43:06 [57157:7] ../../src/mgr/core/mgrconf.cpp:93 TRACE deleted /etc/.master.passwd.9682563282, filename=/etc/master.passwd
Oct 31 08:43:06 [57157:7] EXTINFO Execute (/usr/bin/ci "-m create by process with pid 57157" -nREV_2013_10_31_57157_7 var/cbackup//etc/master.passwd) return=0 exited
Oct 31 08:43:10 [57157:8] INFO Request [178.33.42.134][root] 'clickstat=yes&func=email'
Oct 31 08:43:10 [57157:8] ../../src/ispmgr/core/ispmgr.cpp:746 TRACE Rebuild AccountCache force[false] pgen[1] cgen[18]
Oct 31 08:43:10 [57157:8] ../../src/ispmgr/core/ispmgr.cpp:922 DEBUG Total accounts 2
Oct 31 08:43:10 [57157:8] ../../src/ispmgr/core/ispmgr.cpp:2062 TRACE HideToolbtn

usaafko 11-02-2013 08:00 AM

Hello, can you activate procmail MTA instead of maildrop?

ispdodo 11-02-2013 10:07 AM

The only Mail delivery agent option i see in ISPmanager Panel - Server settings - Applications is maildrop. Should i activate procmail manually? How to do that?

ispdodo 11-03-2013 10:40 AM

Problem solved:
1. backup up all user mailboxes
2. delete all mailboxes
3. delete maildrop from ISPmanager Panel - Server settings - Applications
4. install procmail from same page
5. recover mailboxes from backup

ispdodo 11-03-2013 10:43 AM

maildrop fails while he can't move temporarily file to mailbox, I have no idea why is this happening

https://github.com/toddr/courier/blo...drop/maildir.C
Code:

                if (link( (const char *)tmpname, (const char *)newname) < 0)
                {
                        if (errno == EXDEV){
                                if(rename((const char *)tmpname, (const char *)newname) < 0)
                                        throw "rename() failed.";
                                is_afs = 1;
                        }
                        else
                        {
                                throw "link() failed.";
                        }
                }



All times are GMT +2. The time now is 09:24 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.