PDA

View Full Version : failed: Permission denied


Morons
27th August 2009, 16:55
I checked ISPC 3.0.1.3 and this user exist! Yet I get this in the logfiles.
Authtest works correct as well as some postmap tests, It seems the issue is with the relay=maildrop permissions?

In the code part I highlited the error by adding spaces around the line.

# cat /var/log/syslog |grep 441D01A06148
Aug 27 15:46:52 artemis postfix/smtpd[30452]: 441D01A06148: client=localhost[127.0.0.1]
Aug 27 15:46:52 artemis postfix/cleanup[30446]: 441D01A06148: message-id=<000c01ca271c$b4e7ad10$1eb70730$@co.za>
Aug 27 15:46:52 artemis postfix/qmgr[3825]: 441D01A06148: from=<abc@fqdn.site>, size=3615, nrcpt=1 (queue active)
Aug 27 15:46:53 artemis amavis[16097]: (16097-17) Passed CLEAN, [196.25.240.239] [41.242.204.64] <abc@fqdn.site> -> <xyz@fqdn.site>, Message-ID: <000c01ca271c$b4e7ad10$1eb70730$@co.za>, mail_id: sWX3Yp38I5m8, Hits: 0.332, size: 3133, queued_as: 441D01A06148, 14690 ms

Aug 27 15:46:53 artemis postfix/pipe[30456]: 441D01A06148: to=<xyz@fqdn.site>, relay=maildrop, delay=0.76, delays=0.05/0.1/0/0.61, dsn=5.1.1, status=bounced (user unknown. Command output: ERR: authdaemon: s_connect() failed: Permission denied Invalid user specified. )

Aug 27 15:46:53 artemis postfix/bounce[30458]: 441D01A06148: sender non-delivery notification: 122591A06171
Aug 27 15:46:53 artemis postfix/qmgr[3825]: 441D01A06148: removed
Aug 27 15:46:53 artemis postfix/smtp[30449]: 27FEA1A06146: to=<xyz@fqdn.site>, relay=127.0.0.1[127.0.0.1]:10024, delay=50, delays=33/0.02/4.1/13, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=16097-17, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 441D01A06148)


Were is this permission problem? How could it change - this was an perfectly working installation. maybe caused by an apt-get upgrade?

Morons
27th August 2009, 18:43
B$ you ask for it

ls -la /var/vmail/fqdn.site
total 20
drwxr-xr-x 5 vmail vmail 4096 2009-06-23 11:35 .
drwxr-xr-x 6 vmail vmail 4096 2009-07-23 08:39 ..
drwx------ 9 vmail vmail 4096 2009-08-26 08:39 xyz
drwx------ 5 vmail vmail 4096 2009-08-27 00:30 emmy
drwx------ 5 vmail vmail 4096 2009-08-27 00:30 lizzy

Morons
28th August 2009, 10:06
FiX:

chown vmail:daemon /var/run/courier/authdaemon/

Somehow - probably with an apt-get upgrade the ownership changed to daemon:daemon
This wan was costly to me, toook lots of googling and time.

bajodel
28th August 2009, 10:35
chown vmail:daemon /var/run/courier/authdaemon/

Somehow - probably with an apt-get upgrade the ownership changed to daemon:daemon

In my test server (ISPConfig 3.0.1.4 beta2) and "apt-get dist-upgraded"..

---

# ll /var/run/courier/
drwxr-xr-x 2 daemon daemon 4096 2009-08-26 08:09 authdaemon
...
---

# ll /var/run/courier/authdaemon/
-rw-r--r-- 1 root root 6 2009-08-26 08:09 pid
-rw------- 1 root root 0 2009-08-25 13:39 pid.lock
srwxrwxrwx 1 root root 0 2009-08-26 08:09 socket

---

...but all is ok here .. :confused:


Bye..

bajodel.

Morons
14th September 2009, 17:24
This keep re-ocurring, maybe my setup need to change, or the authdaemon's must run under other group or sumthing - any clever ideas?