Hello everyone, We're a few students from Denmark trying to configure an Ubuntu webserver / mailserver for a school-project. Everything works just fine, except our mailserver. We can log into our mailboxes on Roundcube Webmail, but we can't send or receive any mails. We've installed ISPConfig through the script: github.com/servisys/ispconfig_setup And followed every step in the guide: howtoforge_ispconfig-3-automated-installation-on-ubuntu-1804.pdf We have added a mail domain as follows: And a few mailbox accounts: And we've added email routing as follows (the destination IP is our mailserver): Here is a copy/paste of our most recent maillog. We're pretty sure it has something to do with the SSL_accept error, because we keep getting it. We're using self-signed certificates: Nov 15 08:45:01 ispc postfix/smtps/smtpd[111183]: connect from localhost[::1] Nov 15 08:45:01 ispc postfix/smtps/smtpd[111183]: SSL_accept error from localhost[::1]: lost connection Nov 15 08:45:01 ispc postfix/smtps/smtpd[111183]: lost connection after CONNECT from localhost[::1] Nov 15 08:45:01 ispc postfix/smtps/smtpd[111183]: disconnect from localhost[::1] commands=0/0 Nov 15 08:45:58 ispc dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=111190, secured, session=<M8nKPa96rusAAAAAAAAAAAAAAAAAAAAB> Nov 15 08:45:58 ispc dovecot: imap([email protected]): Logged out in=29 out=502 Nov 15 08:45:58 ispc dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=111192, secured, session=<8nPLPa96sOsAAAAAAAAAAAAAAAAAAAAB> Nov 15 08:45:58 ispc dovecot: imap([email protected]): Logged out in=70 out=633 Nov 15 08:45:58 ispc dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=111195, secured, session=<wuXPPa96susAAAAAAAAAAAAAAAAAAAAB> Nov 15 08:45:58 ispc dovecot: imap([email protected]): Logged out in=233 out=1026 Nov 15 08:45:58 ispc dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=111196, secured, session=<4xrQPa96tOsAAAAAAAAAAAAAAAAAAAAB> Nov 15 08:45:58 ispc dovecot: imap([email protected]): Logged out in=316 out=1532 Nov 15 08:46:00 ispc dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=111198, secured, session=<nPfuPa96tusAAAAAAAAAAAAAAAAAAAAB> Nov 15 08:46:00 ispc dovecot: imap([email protected]): Logged out in=321 out=2297 Nov 15 08:46:07 ispc dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=111219, secured, session=<gmpWPq96uOsAAAAAAAAAAAAAAAAAAAAB> Nov 15 08:46:07 ispc dovecot: imap([email protected]): Logged out in=427 out=1681 Nov 15 08:46:09 ispc dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=111221, secured, session=<O2N7Pq96uusAAAAAAAAAAAAAAAAAAAAB> Nov 15 08:46:09 ispc dovecot: imap([email protected]): Logged out in=316 out=1532 Nov 15 08:46:15 ispc dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=111223, secured, session=<v0DXPq96vOsAAAAAAAAAAAAAAAAAAAAB> Nov 15 08:46:15 ispc dovecot: imap([email protected]): Logged out in=32 out=485 Nov 15 08:46:15 ispc dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=111225, secured, session=<L5zXPq96vusAAAAAAAAAAAAAAAAAAAAB> Nov 15 08:46:15 ispc dovecot: imap([email protected]): Logged out in=44 out=592 Nov 15 08:46:29 ispc postfix/smtps/smtpd[111183]: connect from localhost[::1] Please ask if you need us to provide any more details. Thank you in advance, best regards - students from Denmark.
Please log into webmail and send an email to the same address that you used for webmail login, then check inbox in webmail after about 30 seconds. Did the email arrive? if not, please post the lines that got added to mail.log file for this sending attempt. The email domain you added in ispconfig is not identical with the server hostname and not listed anywhere in /etc/postfix/main.cf and /etc/mailname, right?
Hello Till, We did not recieve any mail. Here is a copy/paste of the mail log after trying to send a mail from mail1@ kco.ceu-data.dk to mail1@ kco.ceu-data.dk from Roundcube Webmail: Here is a clip from /etc/postfix/main.cf myhostname = ispc.kevin.toon And here's a clip from /etc/mailname:
The config looks fine as far as I can see. The log does not show any sending attempt, which is a bit strange, it just shows the imap login. Are you sure that there were no other lines from that test at the end of the log file? Please run the test script https://www.howtoforge.com/community/threads/please-read-before-posting.58408/ and post the result.
There seem to be config issues in postfix master.cf file. Please post the content of /etc/postfix/master.cf
Remove the # in front of the line that start with smtps and the line that starts with submission and restart postfix.
Post the log from this send attempt. Did you send to the local mailbox or to a mailbox outside of the server?
We're testing from one local email to another: mail1@ kco.ceu-data.dk to mail2@ kco.ceu-data.dk Here's the log from our newest attempt: Nov 15 12:25:28 ispc dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=4766, secured, session=<xqnPTrJ6rLsAAAAAAAAAAAAAAAAAAAAB> Nov 15 12:25:28 ispc dovecot: imap([email protected]): Logged out in=117 out=950 Nov 15 12:25:48 ispc dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=4771, secured, session=<bBb7T7J6rrsAAAAAAAAAAAAAAAAAAAAB> Nov 15 12:25:48 ispc dovecot: imap([email protected]): Logged out in=32 out=485 Nov 15 12:25:48 ispc dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=4773, secured, session=<y5H7T7J6sLsAAAAAAAAAAAAAAAAAAAAB> Nov 15 12:25:48 ispc dovecot: imap([email protected]): Logged out in=44 out=592 Nov 15 12:25:51 ispc postfix/smtpd[4528]: timeout after END-OF-MESSAGE from localhost[127.0.0.1] Nov 15 12:25:51 ispc postfix/smtpd[4528]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 commands=4 Nov 15 12:26:00 ispc postfix/smtpd[4746]: connect from localhost[::1] Nov 15 12:26:00 ispc postfix/trivial-rewrite[4512]: warning: do not list domain kco.ceu-data.dk in BOTH virtual_mailbox_domains and relay_domains Nov 15 12:26:00 ispc postfix/trivial-rewrite[4512]: message repeated 2 times: [ warning: do not list domain kco.ceu-data.dk in BOTH virtual_mailbox_domains and relay_domains] Nov 15 12:26:00 ispc postfix/smtpd[4746]: NOQUEUE: filter: RCPT from localhost[::1]: <[email protected]>: Sender address triggers FILTER amavis:[127.0.0.1]:10026; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<ispc.kevin.toon> Nov 15 12:26:00 ispc postfix/smtpd[4746]: 5331EA2B6A: client=localhost[::1], sasl_method=LOGIN, [email protected] Nov 15 12:26:00 ispc postfix/cleanup[4775]: 5331EA2B6A: message-id=<[email protected]> Nov 15 12:26:00 ispc postfix/qmgr[4396]: 5331EA2B6A: from=<[email protected]>, size=598, nrcpt=1 (queue active) Nov 15 12:26:00 ispc postfix/smtpd[4746]: disconnect from localhost[::1] ehlo=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=6 Nov 15 12:26:00 ispc dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=4778, secured, session=<v4e1ULJ6wrsAAAAAAAAAAAAAAAAAAAAB> Nov 15 12:26:00 ispc dovecot: imap([email protected]): Logged out in=455 out=648 Nov 15 12:26:01 ispc dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=4782, secured, session=<TEO/ULJ6yrsAAAAAAAAAAAAAAAAAAAAB> Nov 15 12:26:01 ispc dovecot: imap([email protected]): Logged out in=70 out=633 Nov 15 12:26:01 ispc dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=4785, secured, session=<bMTDULJ6zLsAAAAAAAAAAAAAAAAAAAAB> Nov 15 12:26:01 ispc dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=4786, secured, session=<g+DDULJ6zrsAAAAAAAAAAAAAAAAAAAAB> Nov 15 12:26:01 ispc dovecot: imap([email protected]): Logged out in=315 out=3409 Nov 15 12:26:01 ispc dovecot: imap([email protected]): Logged out in=119 out=765 Nov 15 12:26:02 ispc postfix/smtpd[4528]: connect from localhost[127.0.0.1] Nov 15 12:26:02 ispc postfix/trivial-rewrite[4512]: warning: do not list domain kco.ceu-data.dk in BOTH virtual_mailbox_domains and relay_domains Nov 15 12:26:02 ispc postfix/smtpd[4528]: 2B04CA2B89: client=localhost[127.0.0.1] Nov 15 12:26:02 ispc postfix/cleanup[4775]: 2B04CA2B89: message-id=<[email protected]> Nov 15 12:26:02 ispc postfix/qmgr[4396]: 2B04CA2B89: from=<[email protected]>, size=1044, nrcpt=1 (queue active) Nov 15 12:26:02 ispc postfix/smtpd[4528]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5 Nov 15 12:26:02 ispc postfix/trivial-rewrite[4512]: warning: do not list domain kco.ceu-data.dk in BOTH virtual_mailbox_domains and relay_domains Nov 15 12:26:02 ispc amavis[1258]: (01258-02) Passed CLEAN {RelayedOutbound}, ORIGINATING LOCAL [::1]:34462 <[email protected]> -> <[email protected]>, Queue-ID: 5331EA2B6A, Message-ID: <[email protected]>, mail_id: BsftgJLDHn1u, Hits: 0.985, size: 598, queued_as: 2B04CA2B89, 1787 ms Nov 15 12:26:02 ispc postfix/smtp[4776]: 5331EA2B6A: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10026, delay=1.9, delays=0.05/0.02/0.01/1.8, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10027): 250 2.0.0 Ok: queued as 2B04CA2B89) Nov 15 12:26:02 ispc postfix/qmgr[4396]: 5331EA2B6A: removed Nov 15 12:26:02 ispc postfix/smtp[4807]: 2B04CA2B89: to=<[email protected]>, relay=none, delay=0.02, delays=0/0.01/0/0, dsn=5.4.6, status=bounced (mail for 172.20.176.3 loops back to myself) Nov 15 12:26:02 ispc postfix/cleanup[4775]: 30B7DA2B9F: message-id=<[email protected]> Nov 15 12:26:02 ispc postfix/qmgr[4396]: 30B7DA2B9F: from=<>, size=2954, nrcpt=1 (queue active) Nov 15 12:26:02 ispc postfix/bounce[4808]: 2B04CA2B89: sender non-delivery notification: 30B7DA2B9F Nov 15 12:26:02 ispc postfix/trivial-rewrite[4512]: warning: do not list domain kco.ceu-data.dk in BOTH virtual_mailbox_domains and relay_domains Nov 15 12:26:02 ispc postfix/qmgr[4396]: 2B04CA2B89: removed Nov 15 12:26:02 ispc postfix/smtp[4807]: 30B7DA2B9F: to=<[email protected]>, relay=none, delay=0.01, delays=0.01/0/0/0, dsn=5.4.6, status=bounced (mail for 172.20.176.3 loops back to myself) Nov 15 12:26:02 ispc postfix/qmgr[4396]: 30B7DA2B9F: removed
You added the domain as email domain (local) and as relay domain (external), this can not work. A domain is either local or remote, but not both. As you added mailboxes for that domain, I assume that you want to use them which means that it's a local domain, so you have to delete the domain from relay domains in ispconfig.