HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   postfix problems with smtp (http://www.howtoforge.com/forums/showthread.php?t=4229)

linkdeb 11th May 2006 11:00

postfix problems with smtp
 
hi !!

i have a problem with the configuration of postfix server. the howto is this ->

http://workaround.org/articles/ispmail-sarge/

my problem are in the step 9 . -> telnet localhost 25

response ->
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 debianserver ESMTP Postfix (Debian/GNU)

write -> ehlo redebian.linux.es (my domain)
response ->
250-debianserver
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN DIGEST-MD5 CRAM-MD5
250-AUTH=LOGIN PLAIN DIGEST-MD5 CRAM-MD5
250 8BITMIME
write -> mail from: <link@redebian.linux.es>
donīt response

where are the problem?

this is my mail.log

May 10 20:09:02 localhost postfix/postfix-script: starting the Postfix mail system
May 10 20:09:02 localhost postfix/master[5552]: daemon started -- version 2.1.5
May 10 20:15:42 localhost authdaemond.plain: modules="authpam", daemons=5
May 10 20:15:51 localhost authdaemond.plain: restarting authdaemond children
May 10 20:15:51 localhost authdaemond.plain: modules="authpam", daemons=5
May 10 20:17:47 localhost postfix/postfix-script: fatal: the Postfix mail system is already running
May 10 20:44:16 localhost postfix/postfix-script: fatal: usage: postfix start (or stop, reload, abort, flush, check, set-permissions, upgrade-configuration)
May 10 20:44:26 localhost postfix/postfix-script: stopping the Postfix mail system
May 10 20:44:27 localhost postfix/master[5552]: terminating on signal 15
May 10 20:44:28 localhost postfix/postfix-script: starting the Postfix mail system
May 10 20:44:28 localhost postfix/master[10018]: daemon started -- version 2.1.5
May 10 20:55:55 localhost authdaemond.plain: restarting authdaemond children
May 10 20:55:55 localhost authdaemond.plain: modules="authmysql", daemons=5
May 10 20:55:55 localhost authdaemond.mysql: modules="authmysql", daemons=5
May 10 20:56:12 localhost courierpop3login: Connection, ip=[::ffff:127.0.0.1]
May 10 20:56:26 localhost courierpop3login: LOGOUT, ip=[::ffff:127.0.0.1]
May 10 20:59:37 localhost postfix/smtpd[10172]: connect from localhost.localdomain[127.0.0.1]
May 10 21:01:00 localhost postfix/trivial-rewrite[10174]: warning: connect to mysql server 127.0.0.1: Host 'localhost.localdomain' is not allowed to connect to this MySQL server
May 10 21:01:00 localhost postfix/trivial-rewrite[10174]: fatal: mysql:/etc/postfix/mysql-virtual_forwardings.cf(0,100): table lookup problem
May 10 21:01:01 localhost postfix/smtpd[10172]: warning: premature end-of-input on private/rewrite socket while reading input attribute name
May 10 21:01:01 localhost postfix/smtpd[10172]: warning: problem talking to service rewrite: Success
May 10 21:01:01 localhost postfix/master[10018]: warning: process /usr/lib/postfix/trivial-rewrite pid 10174 exit status 1
May 10 21:01:02 localhost postfix/trivial-rewrite[10176]: warning: connect to mysql server 127.0.0.1: Host 'localhost.localdomain' is not allowed to connect to this MySQL server
May 10 21:01:02 localhost postfix/trivial-rewrite[10176]: fatal: mysql:/etc/postfix/mysql-virtual_forwardings.cf(0,100): table lookup problem
May 10 21:01:03 localhost postfix/smtpd[10172]: warning: premature end-of-input on private/rewrite socket while reading input attribute name
May 10 21:01:03 localhost postfix/smtpd[10172]: warning: problem talking to service rewrite: Success
May 10 21:01:03 localhost postfix/master[10018]: warning: process /usr/lib/postfix/trivial-rewrite pid 10176 exit status 1
May 10 21:01:03 localhost postfix/master[10018]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
May 10 21:02:03 localhost postfix/trivial-rewrite[10178]: warning: connect to mysql server 127.0.0.1: Host 'localhost.localdomain' is not allowed to connect to this MySQL server
May 10 21:02:03 localhost postfix/trivial-rewrite[10178]: fatal: mysql:/etc/postfix/mysql-virtual_forwardings.cf(0,100): table lookup problem
May 10 21:02:04 localhost postfix/master[10018]: warning: process /usr/lib/postfix/trivial-rewrite pid 10178 exit status 1
May 10 21:02:04 localhost postfix/master[10018]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
May 10 21:02:04 localhost postfix/smtpd[10172]: warning: premature end-of-input on private/rewrite socket while reading input attribute name
May 10 21:02:04 localhost postfix/smtpd[10172]: warning: problem talking to service rewrite: Success
May 10 21:03:04 localhost postfix/trivial-rewrite[10180]: warning: connect to mysql server 127.0.0.1: Host 'localhost.localdomain' is not allowed to connect to this MySQL server
May 10 21:03:04 localhost postfix/trivial-rewrite[10180]: fatal: mysql:/etc/postfix/mysql-virtual_forwardings.cf(0,100): table lookup problem
May 10 21:03:05 localhost postfix/smtpd[10172]: warning: premature end-of-input on private/rewrite socket while reading input attribute name
May 10 21:03:05 localhost postfix/smtpd[10172]: warning: problem talking to service rewrite: Success
May 10 21:03:05 localhost postfix/master[10018]: warning: process /usr/lib/postfix/trivial-rewrite pid 10180 exit status 1
May 10 21:03:05 localhost postfix/master[10018]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
May 10 21:04:05 localhost postfix/trivial-rewrite[10182]: warning: connect to mysql server 127.0.0.1: Host 'localhost.localdomain' is not allowed to connect to this MySQL server
May 10 21:04:05 localhost postfix/trivial-rewrite[10182]: fatal: mysql:/etc/postfix/mysql-virtual_forwardings.cf(0,100): table lookup problem
May 10 21:04:06 localhost postfix/smtpd[10172]: warning: premature end-of-input on private/rewrite socket while reading input attribute name
May 10 21:04:06 localhost postfix/smtpd[10172]: warning: problem talking to service rewrite: Success
May 10 21:04:06 localhost postfix/master[10018]: warning: process /usr/lib/postfix/trivial-rewrite pid 10182 exit status 1
May 10 21:04:06 localhost postfix/master[10018]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
May 10 21:05:06 localhost postfix/trivial-rewrite[10184]: warning: connect to mysql server 127.0.0.1: Host 'localhost.localdomain' is not allowed to connect to this MySQL server
May 10 21:05:06 localhost postfix/trivial-rewrite[10184]: fatal: mysql:/etc/postfix/mysql-virtual_forwardings.cf(0,100): table lookup problem
May 10 21:05:07 localhost postfix/smtpd[10172]: warning: premature end-of-input on private/rewrite socket while reading input attribute name
May 10 21:05:07 localhost postfix/smtpd[10172]: warning: problem talking to service rewrite: Success
May 10 21:05:07 localhost postfix/master[10018]: warning: process /usr/lib/postfix/trivial-rewrite pid 10184 exit status 1
May 10 21:05:07 localhost postfix/master[10018]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
May 10 21:05:32 localhost postfix/smtpd[10197]: connect from localhost.localdomain[127.0.0.1]
May 10 21:06:07 localhost postfix/trivial-rewrite[10198]: warning: connect to mysql server 127.0.0.1: Host 'localhost.localdomain' is not allowed to connect to this MySQL server
May 10 21:06:07 localhost postfix/trivial-rewrite[10198]: fatal: mysql:/etc/postfix/mysql-virtual_forwardings.cf(0,100): table lookup problem
May 10 21:06:08 localhost postfix/smtpd[10172]: warning: premature end-of-input on private/rewrite socket while reading input attribute name
May 10 21:06:08 localhost postfix/smtpd[10172]: warning: problem talking to service rewrite: Success
May 10 21:06:08 localhost postfix/smtpd[10197]: warning: premature end-of-input on private/rewrite socket while reading input attribute name
May 10 21:06:08 localhost postfix/smtpd[10197]: warning: problem talking to service rewrite: Connection reset by peer
May 10 21:06:08 localhost postfix/master[10018]: warning: process /usr/lib/postfix/trivial-rewrite pid 10198 exit status 1
May 10 21:06:08 localhost postfix/master[10018]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
May 10 21:06:37 localhost postfix/smtpd[10209]: connect from localhost.localdomain[127.0.0.1]
May 10 21:07:08 localhost postfix/trivial-rewrite[10210]: warning: connect to mysql server 127.0.0.1: Host 'localhost.localdomain' is not allowed to connect to this MySQL server
May 10 21:07:08 localhost postfix/trivial-rewrite[10210]: fatal: mysql:/etc/postfix/mysql-virtual_forwardings.cf(0,100): table lookup problem
May 10 21:07:08 localhost postfix/trivial-rewrite[10211]: warning: connect to mysql server 127.0.0.1: Host 'localhost.localdomain' is not allowed to connect to this MySQL server
May 10 21:07:08 localhost postfix/trivial-rewrite[10211]: fatal: mysql:/etc/postfix/mysql-virtual_forwardings.cf(0,100): table lookup problem
May 10 21:07:09 localhost postfix/smtpd[10172]: warning: premature end-of-input on private/rewrite socket while reading input attribute name
May 10 21:07:09 localhost postfix/smtpd[10172]: warning: problem talking to service rewrite: Success
May 10 21:07:09 localhost postfix/smtpd[10197]: warning: premature end-of-input on private/rewrite socket while reading input attribute name
May 10 21:07:09 localhost postfix/smtpd[10197]: warning: problem talking to service rewrite: Connection reset by peer
May 10 21:07:09 localhost postfix/master[10018]: warning: process /usr/lib/postfix/trivial-rewrite pid 10210 exit status 1
May 10 21:07:09 localhost postfix/master[10018]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
May 10 21:07:09 localhost postfix/smtpd[10209]: warning: premature end-of-input on private/rewrite socket while reading input attribute name
May 10 21:07:09 localhost postfix/smtpd[10209]: warning: problem talking to service rewrite: Success
May 10 21:07:09 localhost


GRACIAS!!!

falko 11th May 2006 17:21

That's the problem:
Code:

May 10 21:07:08 localhost postfix/trivial-rewrite[10211]: warning: connect to mysql server 127.0.0.1: Host 'localhost.localdomain' is not allowed to connect to this MySQL server
You must have an entry for localhost.localdomain in the mysql.users table, not just for localhost.

shark_tico 14th October 2006 01:50

postfix problems with smtp + mysql
 
Hello

I have the same problem (the same how to http://workaround.org/articles/ispmail-sarge/ and in the same step 9 ) but my log show only this:

Oct 13 11:32:34 localhost postfix/trivial-rewrite[5912]: fatal: mysql:/etc/postfix/mysql-config-files/mysql-virtual_domains.cf(0,100): table lookup problem
Oct 13 11:32:34 localhost postfix/trivial-rewrite[5914]: fatal: mysql:/etc/postfix/mysql-config-files/mysql-virtual_domains.cf(0,100): table lookup problem
Oct 13 11:33:35 localhost postfix/trivial-rewrite[5916]: fatal: mysql:/etc/postfix/mysql-config-files/mysql-virtual_domains.cf(0,100): table lookup problem
Oct 13 11:33:35 localhost postfix/trivial-rewrite[5918]: fatal: mysql:/etc/postfix/mysql-config-files/mysql-virtual_domains.cf(0,100): table lookup problem
Oct 13 11:34:36 localhost postfix/trivial-rewrite[5931]: fatal: mysql:/etc/postfix/mysql-config-files/mysql-virtual_domains.cf(0,100): table lookup problem
Oct 13 11:34:36 localhost postfix/trivial-rewrite[5933]: fatal: mysql:/etc/postfix/mysql-config-files/mysql-virtual_domains.cf(0,100): table lookup problem
Oct 13 11:35:37 localhost postfix/trivial-rewrite[5935]: fatal: mysql:/etc/postfix/mysql-config-files/mysql-virtual_domains.cf(0,100): table lookup problem
Oct 13 11:35:37 localhost postfix/trivial-rewrite[5937]: fatal: mysql:/etc/postfix/mysql-config-files/mysql-virtual_domains.cf(0,100): table lookup problem
Oct 13 11:36:38 localhost postfix/trivial-rewrite[5945]: fatal: mysql:/etc/postfix/mysql-config-files/mysql-virtual_domains.cf(0,100): table lookup problem
Oct 13 11:36:38 localhost postfix/trivial-rewrite[5947]: fatal: mysql:/etc/postfix/mysql-config-files/mysql-virtual_domains.cf(0,100): table lookup problem
Oct 13 11:37:39 localhost postfix/trivial-rewrite[5967]: fatal: mysql:/etc/postfix/mysql-config-files/mysql-virtual_forwardings.cf(0,100): table lookup problem
Oct 13 11:37:39 localhost postfix/trivial-rewrite[5969]: fatal: mysql:/etc/postfix/mysql-config-files/mysql-virtual_forwardings.cf(0,100): table lookup problem


any idea?

Txs for help

falko 15th October 2006 13:33

What's in /etc/postfix/mysql-config-files/mysql-virtual_domains.cf?

shark_tico 16th October 2006 19:14

fixed
 
Thank u Falko

I saw my /var/log/mail.info and i saw this error:

Oct 15 06:30:42 localhost postfix/cleanup[5708]: warning: connect to mysql server 127.0.0.1: #HY000Host 'localhost.localdomain' is not allowed to connect to this MySQL server

Then I allow the localhost.localdomain to connect to mysql and problem resolved.

Thanks for u interest.

shark_tico 17th October 2006 22:35

no SASL support or SASL support is not compiled
 
Hello


Now I have this error in my /var/log/mail.log
warning: restriction `permit_sasl_authenticated' ignored: no SASL support
warning: smtpd_sasl_auth_enable is true, but SASL support is not compiled in

The message are cutted.

I installed:

# libsasl2 (the Cyrus SASL library)
# libsasl2-modules (the mechanisms for the SASL library)
# libsasl2-modules-sql

like the how to said.

sudo dpkg -l | grep sasl

ii libsasl2 2.1.19.dfsg1-0 Authentication abstraction library
ii libsasl2-modul 2.1.19.dfsg1-0 Pluggable Authentication Modules for SASL
ii libsasl2-modul 2.1.19.dfsg1-0 Pluggable Authentication Modules for SASL

I install all the packages with apt-get install xxxx
(http://workaround.org/articles/ispma...stall_packages)


Any ideas?

Thanks a lot for the help

falko 18th October 2006 17:01

Quote:

Originally Posted by shark_tico
Now I have this error in my /var/log/mail.log
warning: restriction `permit_sasl_authenticated' ignored: no SASL support
warning: smtpd_sasl_auth_enable is true, but SASL support is not compiled in

Your Postfix doesn't support SASL. It seems you didn't compile in SASL support...

shark_tico 18th October 2006 23:49

something wrong
 
I think something is wrong here.

I followed the how to:

http://workaround.org/articles/ispmail-sarge/

and I download all the pakages with apt-get and I didn't compile postfix

Any ideas?

falko 19th October 2006 15:36

You could try this tutorial instead: http://www.howtoforge.com/virtual_po..._quota_courier
In the end you have almost the same, plus encrypted passwords. :)

shark_tico 24th October 2006 17:12

to finish
 
I reinstalled all the system, the machine and followed the how to again, and now everything is working fine.

Thanks.


All times are GMT +2. The time now is 11:52.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.