Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 11th May 2006, 12:00
linkdeb linkdeb is offline
Junior Member
 
Join Date: May 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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!!!
Reply With Quote
Sponsored Links
  #2  
Old 11th May 2006, 18:21
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 14th October 2006, 02:50
shark_tico shark_tico is offline
Junior Member
 
Join Date: Oct 2006
Location: San Ramon, Costa Rica
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
Default 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
Reply With Quote
  #4  
Old 15th October 2006, 14:33
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

What's in /etc/postfix/mysql-config-files/mysql-virtual_domains.cf?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 16th October 2006, 20:14
shark_tico shark_tico is offline
Junior Member
 
Join Date: Oct 2006
Location: San Ramon, Costa Rica
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
Default 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.
Reply With Quote
The Following User Says Thank You to shark_tico For This Useful Post:
AbannyvabVask (20th December 2013)
  #6  
Old 17th October 2006, 23:35
shark_tico shark_tico is offline
Junior Member
 
Join Date: Oct 2006
Location: San Ramon, Costa Rica
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
Default 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
Reply With Quote
  #7  
Old 18th October 2006, 18:01
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

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...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 19th October 2006, 00:49
shark_tico shark_tico is offline
Junior Member
 
Join Date: Oct 2006
Location: San Ramon, Costa Rica
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
Default 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?
__________________
Fabio Benavides
www.unavidaconproposito.com
Reply With Quote
  #9  
Old 19th October 2006, 16:36
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
AbannyvabVask (21st December 2013)
  #10  
Old 24th October 2006, 18:12
shark_tico shark_tico is offline
Junior Member
 
Join Date: Oct 2006
Location: San Ramon, Costa Rica
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
 
Default to finish

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

Thanks.
__________________
Fabio Benavides
www.unavidaconproposito.com
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 13:20
Mailserver / Postfix Problems oaky Server Operation 31 7th August 2007 20:50
Bind, Postfix and possibly more problems from "http://" domain entry LunarNexus Installation/Configuration 5 5th April 2006 16:50
problems sending receiving mail on Postfix mavgh1 HOWTO-Related Questions 17 10th March 2006 13:43
Removed PostFix, Now MySql Problems!!! sapient Installation/Configuration 10 24th October 2005 08:11


All times are GMT +2. The time now is 23:20.


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