Can't receive or send emial [Postfix,Dovecot]

After I set my email server I did a test email and it didn't work. .

:~# tail /var/log/mail.log

Apr 8 15:25:05 kungfu2015 postfix/master[30872]: warning: /usr/lib/postfix/smtpd: bad command startup – throttling

Apr 8 15:25:28 kungfu2015 postfix/master[30872]: terminating on signal 15

Apr 8 15:25:29 kungfu2015 postfix/master[32560]: daemon started – version 2.11.0, configuration /etc/postfix

Apr 8 15:25:29 kungfu2015 postfix/smtpd[32565]: warning: /etc/postfix/mysql-virtual-mailbox-maps.cf: logical line must not start with whitespace: " user = mailuser password = …"

Apr 8 15:25:29 kungfu2015 postfix/smtpd[32565]: fatal: /etc/postfix/mysql-virtual-mailbox-maps.cf: bad string length 0 < 1: dbname =

Apr 8 15:25:30 kungfu2015 postfix/master[32560]: warning: process /usr/lib/postfix/smtpd pid 32565 exit status 1

Apr 8 15:25:30 kungfu2015 postfix/master[32560]: warning: /usr/lib/postfix/smtpd: bad command startup – throttling

Apr 8 15:25:35 kungfu2015 dovecot: log: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)

Apr 8 15:25:35 kungfu2015 dovecot: master: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)

Apr 8 15:25:35 kungfu2015 dovecot: master: Dovecot v2.2.9 starting up (core dumps disabled)

nano /var/log/mail.log

postfix/smtpd[391]: warning: /etc/postfix/mysql-virt$

Apr 8 15:32:36 kungfu2015 postfix/smtpd[391]: fatal: /etc/postfix/mysql-virtua$

Apr 8 15:32:37 kungfu2015 postfix/master[32560]: warning: process /usr/lib/pos$

Apr 8 15:32:37 kungfu2015 postfix/master[32560]: warning: /usr/lib/postfix/smt$

Apr 8 15:33:37 kungfu2015 postfix/smtpd[428]: warning: /etc/postfix/mysql-virt$

Apr 8 15:33:37 kungfu2015 postfix/smtpd[428]: fatal: /etc/postfix/mysql-virtua$

Apr 8 15:33:38 kungfu2015 postfix/master[32560]: warning: process /usr/lib/pos$

Apr 8 15:33:38 kungfu2015 postfix/master[32560]: warning: /usr/lib/postfix/smt$

What's going on ?

anyone help ?

Thanks in advance

3 Replies

Apr 9 00:06:21 kungfu2015 postfix/master[32560]: warning: /usr/lib/postfix/smtpd pid 14120 exit status 1

Apr 9 00:07:21 kungfu2015 postfix/smtpd[14159]: warning: /etc/postfix/mysql-virtual-mailbox-maps.cf: logical line must not start with whitespace: " user = mailuser password = …"

Apr 9 00:07:21 kungfu2015 postfix/smtpd[14159]: fatal: /etc/postfix/mysql-virtual-mailbox-maps.cf: bad string length 0 < 1: dbname =

Apr 9 00:07:22 kungfu2015 postfix/master[32560]: warning: process /usr/lib/postfix/smtpd pid 14159 exit status 1

How to fix these ??

Anybody help ?

@meesk:

Apr 8 15:25:29 kungfu2015 postfix/smtpd[32565]: warning: /etc/postfix/mysql-virtual-mailbox-maps.cf: logical line must not start with whitespace: " user = mailuser password = …"

Apr 8 15:25:29 kungfu2015 postfix/smtpd[32565]: fatal: /etc/postfix/mysql-virtual-mailbox-maps.cf: bad string length 0 < 1: dbname =

You need to fix /etc/postfix/mysql-virtual-mailbox-maps.cf. Make sure that there are no spaces at the beginning of each line, and make sure you have set a value for dbname.

Did you configured postfix to use dovecot for SASL auth?

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct