First the problem I am having: I cannot login with POP3 to fetch email, "login failed" is the error message. Incoming e-mails appear to not get delivered, as the maildirs stay empty. E-Mail forwarding works, but sender still gets a bounce message. (SMTP authentication is not working either, so relaying doesn't work, but I wil tackle this one later).
This is what I did:I installed SysCp on my Debian Sarge system using the .deb packages. I also installed all other required .deb packages, so Postfix and Courier were fresh installations with no prior configuration done.
Then I followed the "Basic Installtion" HowTo from the SysCp web site (
http://www.syscp.de/wiki/docs/Installation/basic).
The SysCp web interface works fine. When I create new users via the web interface they can create e-mail addresses and these are added correctly to the syscp MySQL database. In /var/kunden/mail a directory for each user gets created, but stays empty, even if I send e-mail to the user. These e-mails bounce.
Here is what /var/log/syslog says:
Sep 12 12:26:06 localhost postfix/smtpd[4119]: unable to get certificate from '/path/to/smtpd.pem'
Sep 12 12:26:06 localhost postfix/smtpd[4119]: 4119:error:02001002:system library:fopen:No such file or directory:bss_file.c:278:fop
en('/path/to/smtpd.pem','r'):
Sep 12 12:26:06 localhost postfix/smtpd[4119]: 4119:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:280:
Sep 12 12:26:06 localhost postfix/smtpd[4119]: 4119:error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib:ssl_rs
a.c:760:
Sep 12 12:26:06 localhost postfix/smtpd[4119]: TLS engine: cannot load RSA cert/key data
Sep 12 12:26:07 localhost postfix/smtpd[4121]: unable to get certificate from '/path/to/smtpd.pem'
Sep 12 12:26:07 localhost postfix/smtpd[4121]: 4121:error:02001002:system library:fopen:No such file or directory:bss_file.c:278:fop
en('/path/to/smtpd.pem','r'):
Sep 12 12:26:07 localhost postfix/smtpd[4121]: 4121:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:280:
Sep 12 12:26:07 localhost postfix/smtpd[4121]: 4121:error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib:ssl_rs
a.c:760:
Sep 12 12:26:07 localhost postfix/smtpd[4121]: TLS engine: cannot load RSA cert/key data
Sep 12 12:26:09 localhost postfix/smtpd[4121]: connect from gd-austria.com[81.169.155.169]
Sep 12 12:26:09 localhost postfix/smtpd[4119]: connect from gd-austria.com[81.169.155.169]
Sep 12 12:26:09 localhost postfix/trivial-rewrite[4122]: warning: do not list domain example.com in BOTH mydestination and vi
rtual_mailbox_domains
Sep 12 12:26:09 localhost postfix/trivial-rewrite[4122]: warning: do not list domain example.com in BOTH mydestination and virtual_
mailbox_domains
Sep 12 12:26:09 localhost postfix/smtpd[4121]: 873ED240275: client=gd-austria.com[81.169.155.169]
Sep 12 12:26:09 localhost postfix/smtpd[4119]: 88583240276: client=gd-austria.com[81.169.155.169]
Sep 12 12:26:09 localhost postfix/cleanup[4125]: 873ED240275: message-id=<
785580089.20060912122655@example.com>
Sep 12 12:26:09 localhost postfix/cleanup[4127]: 88583240276: message-id=<
785580089.20060912122655@example.com>
Sep 12 12:26:09 localhost postfix/smtpd[4121]: disconnect from gd-austria.com[81.169.155.169]
Sep 12 12:26:09 localhost postfix/qmgr[2281]: 873ED240275: from=<
user@example.com>, size=781, nrcpt=1 (queue active)
Sep 12 12:26:09 localhost postfix/local[4130]: 873ED240275: to=<
otheruser@example.com>, relay=local, delay=0, status=sent (deliver
ed to mailbox)
Sep 12 12:26:09 localhost postfix/smtpd[4119]: disconnect from gd-austria.com[81.169.155.169]
Sep 12 12:26:09 localhost postfix/qmgr[2281]: 88583240276: from=<
user@example.com>, size=774, nrcpt=2 (queue active)
Sep 12 12:26:09 localhost postfix/trivial-rewrite[4122]: warning: do not list domain example.com in BOTH mydestination and virtual_
mailbox_domains
Sep 12 12:26:09 localhost postfix/qmgr[2281]: 873ED240275: removed
Sep 12 12:26:09 localhost postfix/local[4130]: 88583240276: to=<
user@example.com>, orig_to=<
us@example.com>, relay=local, de
lay=0, status=bounced (unknown user: "sebastian")
Sep 12 12:33:20 localhost courierpop3login: Connection, ip=[::ffff:87.123.24.69]
Sep 12 12:33:25 localhost courierpop3login: LOGIN FAILED, ip=[::ffff:87.123.24.69]
I'm ignoring the TLS complaints so far, as I will worry about encryption and a certificate later, once unencrypted mail transfer works.
It's especially the last lines that worry me: the user
user@example.com was created successfully with SysCP and exists in the MySQL database. I can manually connect to this database with the MySQL user "syscp" and the appropriate password, just like I entered them into /etc/courier/authmysqlrc.
What I don't understand either is that for the e-mail to "
otheruser@example.com" it says "delivered to mailbox": The directory /var/kunden/mail/yabe is empty!
Your help will be kindly appreciated.
EDIT BY FLO: Anonymized email addresses as requested by guti