Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 28th January 2010, 13:09
allbestmp allbestmp is offline
Junior Member
 
Join Date: Jan 2010
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Postfix not sending outgoing Mail since IP address Change

Dear friends,
I have recently changed my IP address to my VPS, since that moment the server was perfect and I used the perfect server setup for UBUNTU 9.04 guide.
So i have ISPConfig3 installed on my machine: fantastic tool, really simplified my life.

I have migrated to new IP, and everything seems to work fine, except the Postfix outgoing mail service. I have cheked and checked the configuration files, but I cannot find a result. Mail service works in localhost (between local addresses) but not for external mail addresses

I attach some log that could be helpful

netstat -tap | grep smtp
Quote:
tcp 0 0 *:smtp *:* LISTEN 11146/master
tcp6 0 0 [::]:smtp [::]:* LISTEN 11146/master
telnet localhost 25
Quote:
Trying ::1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 li152-5.members.linode.com ESMTP Postfix (Ubuntu)
ehlo localhost
250-li152-5.members.linode.com
250-PIPELINING
250-SIZE
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
This is a part of the mail log
Quote:
Jan 28 10:10:01 li152-5 postfix/smtpd[12832]: warning: ::1: address not listed for hostname localhost
Jan 28 10:15:01 li152-5 postfix/smtpd[12897]: warning: ::1: address not listed for hostname localhost
Jan 28 10:20:01 li152-5 postfix/smtpd[12964]: warning: ::1: address not listed for hostname localhost
Jan 28 10:25:01 li152-5 postfix/smtpd[13018]: warning: ::1: address not listed for hostname localhost
Jan 28 10:30:01 li152-5 postfix/smtpd[13053]: warning: ::1: address not listed for hostname localhost
Jan 28 10:35:01 li152-5 postfix/smtpd[13136]: warning: ::1: address not listed for hostname localhost
Jan 28 10:40:01 li152-5 postfix/smtpd[13209]: warning: ::1: address not listed for hostname localhost
Jan 28 10:45:01 li152-5 postfix/smtpd[13267]: warning: ::1: address not listed for hostname localhost
Jan 28 10:50:01 li152-5 postfix/smtpd[13321]: warning: ::1: address not listed for hostname localhost
Jan 28 10:55:01 li152-5 postfix/smtpd[13379]: warning: ::1: address not listed for hostname localhost
Jan 28 10:58:37 li152-5 postfix/smtpd[13417]: warning: ::1: address not listed for hostname localhost
mysql/my.cf
Quote:
[...]# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address = 127.0.0.1
[...]
Thank you so so much for you help
and thanks for your incredible tool

Alessandro
Reply With Quote
Sponsored Links
  #2  
Old 29th January 2010, 12:44
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

Make sure that your /etc/hosts file contains a line for the IPv6 localhost:

::1 ip6-localhost ip6-loopback


or reconfigure postfix to use IPv4 only.

Quote:
Mail service works in localhost (between local addresses) but not for external mail addresses
Yes, thats the way you configured it with "bind-address = 127.0.0.1" as this allows postfix only to process local emails and not to receive any external emails. Run:

dpkg-reconfigure postfix

to reconfigure your postfix setup.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.

Last edited by till; 29th January 2010 at 12:46.
Reply With Quote
  #3  
Old 29th January 2010, 13:48
allbestmp allbestmp is offline
Junior Member
 
Join Date: Jan 2010
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you for you kind answer,
this is my host file

Quote:
127.0.0.1 localhost.localdomain localhost
109.74.205.5 li152-5.members.linode.com li152-5

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
So it seems localhost with ipv6 was alredy configured.
I corrected the bind-address for postfix,

Quote:
GNU nano 2.0.9 File: /etc/mysql/my.cnf

#bind-address = 127.0.0.1
#
When I try to send mail i continue to have problems in postfix log

Quote:
Jan 29 11:41:33 li152-5 postfix/smtpd[3426]: warning: table "mysql:/etc/postfix/mysql-virtual_client.cf": empty query string -- ignored
Jan 29 11:45:02 li152-5 postfix/smtpd[3426]: warning: ::1: address not listed for hostname localhost

this is my /etc/postfix/mysql-virtual_client.cf

Quote:
user = ispconfig
password = 8d98bc9c327b674484f16e8c0c9b00b8
dbname = dbispconfig
table = mail_access
select_field = access
where_field = source
additional_conditions = and type = 'client' and active = 'y'
hosts = 127.0.0.1
Do I have to add the ::1 host to hosts?

Thank you again for your kind answer
Alessandro

Last edited by allbestmp; 29th January 2010 at 13:51.
Reply With Quote
  #4  
Old 29th January 2010, 15:00
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Quote:
Originally Posted by allbestmp View Post
Do I have to add the ::1 host to hosts?
No - "hosts = 127.0.0.1 " is your MySQL server, so this is correct.
__________________
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 29th January 2010, 17:35
allbestmp allbestmp is offline
Junior Member
 
Join Date: Jan 2010
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What can I do now?



Thank you
Reply With Quote
  #6  
Old 29th January 2010, 17:38
allbestmp allbestmp is offline
Junior Member
 
Join Date: Jan 2010
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is an update of my Mail log

Quote:
Jan 29 14:25:01 li152-5 postfix/smtpd[5389]: disconnect from unknown[::1]
Jan 29 14:25:51 li152-5 postfix/qmgr[3223]: 9FD6F8339: from=, size=2760, nrcpt=1 (queue active)
Jan 29 14:26:12 li152-5 postfix/smtpd[5389]: warning: 116.99.44.170: address not listed for hostname user.enet.vn
Jan 29 14:26:12 li152-5 postfix/smtpd[5389]: connect from unknown[116.99.44.170]
Jan 29 14:26:14 li152-5 postfix/smtpd[5389]: NOQUEUE: reject: RCPT from unknown[116.99.44.170]: 550 5.1.1 : Recipient address rejected: User unknown in virtual mailbox table; from= to= proto=ESMTP helo=
Jan 29 14:26:14 li152-5 postfix/smtpd[5389]: lost connection after RCPT from unknown[116.99.44.170]
Jan 29 14:26:14 li152-5 postfix/smtpd[5389]: disconnect from unknown[116.99.44.170]
Jan 29 14:26:45 li152-5 postfix/smtp[5408]: connect to li101-111.members.linode.com[97.107.140.111]:25: Connection timed out
Jan 29 14:26:45 li152-5 postfix/smtp[5408]: 9FD6F8339: to=, relay=none, delay=144120, delays=144065/0.02/54/0, dsn=4.4.1, status=deferred (connect to li101-111.members.linode.com[97.107.140.111]:25: Connection timed out)
Jan 29 14:29:34 li152-5 postfix/anvil[5414]: statistics: max connection rate 1/60s for (smtp:116.99.44.170) at Jan 29 14:26:12
Jan 29 14:29:34 li152-5 postfix/anvil[5414]: statistics: max connection count 1 for (smtp:116.99.44.170) at Jan 29 14:26:12
Jan 29 14:29:34 li152-5 postfix/anvil[5414]: statistics: max cache size 1 at Jan 29 14:26:12
Jan 29 14:30:01 li152-5 pop3d: Connection, ip=[::1]
Jan 29 14:30:01 li152-5 pop3d: Disconnected, ip=[::1]
Jan 29 14:30:01 li152-5 imapd: Connection, ip=[::1]
Jan 29 14:30:01 li152-5 imapd: Disconnected, ip=[::1], time=0
Jan 29 14:30:01 li152-5 postfix/smtpd[5451]: warning: ::1: address not listed for hostname localhost
Jan 29 14:30:01 li152-5 postfix/smtpd[5451]: connect from unknown[::1]
Jan 29 14:30:01 li152-5 postfix/smtpd[5451]: lost connection after CONNECT from unknown[::1]
Jan 29 14:30:01 li152-5 postfix/smtpd[5451]: disconnect from unknown[::1]
Jan 29 14:35:02 li152-5 pop3d: Connection, ip=[::1]
Jan 29 14:35:02 li152-5 pop3d: Disconnected, ip=[::1]
Jan 29 14:35:02 li152-5 imapd: Connection, ip=[::1]
Jan 29 14:35:02 li152-5 imapd: Disconnected, ip=[::1], time=0
Jan 29 14:35:02 li152-5 postfix/smtpd[5505]: warning: ::1: address not listed for hostname localhost
Jan 29 14:35:02 li152-5 postfix/smtpd[5505]: connect from unknown[::1]
Jan 29 14:35:02 li152-5 postfix/smtpd[5505]: lost connection after CONNECT from unknown[::1]
Jan 29 14:35:02 li152-5 postfix/smtpd[5505]: disconnect from unknown[::1]
Jan 29 14:40:01 li152-5 pop3d: Connection, ip=[::1]
Jan 29 14:40:01 li152-5 pop3d: Disconnected, ip=[::1]
Jan 29 14:40:01 li152-5 imapd: Connection, ip=[::1]
Jan 29 14:40:01 li152-5 imapd: Disconnected, ip=[::1], time=0
Jan 29 14:40:01 li152-5 postfix/smtpd[5572]: warning: ::1: address not listed for hostname localhost
Jan 29 14:40:01 li152-5 postfix/smtpd[5572]: connect from unknown[::1]
Jan 29 14:40:01 li152-5 postfix/smtpd[5572]: lost connection after CONNECT from unknown[::1]
Jan 29 14:40:01 li152-5 postfix/smtpd[5572]: disconnect from unknown[::1]
Jan 29 14:45:01 li152-5 pop3d: Connection, ip=[::1]
Jan 29 14:45:01 li152-5 pop3d: Disconnected, ip=[::1]
Jan 29 14:45:01 li152-5 imapd: Connection, ip=[::1]
Jan 29 14:45:01 li152-5 imapd: Disconnected, ip=[::1], time=0
Jan 29 14:45:01 li152-5 postfix/smtpd[5625]: warning: ::1: address not listed for hostname localhost
Jan 29 14:45:01 li152-5 postfix/smtpd[5625]: connect from unknown[::1]
Jan 29 14:45:01 li152-5 postfix/smtpd[5625]: lost connection after CONNECT from unknown[::1]
Jan 29 14:45:01 li152-5 postfix/smtpd[5625]: disconnect from unknown[::1]
Jan 29 14:50:02 li152-5 pop3d: Connection, ip=[::1]
Jan 29 14:50:02 li152-5 pop3d: Disconnected, ip=[::1]
Jan 29 14:50:02 li152-5 imapd: Connection, ip=[::1]
Jan 29 14:50:02 li152-5 imapd: Disconnected, ip=[::1], time=0
Jan 29 14:50:02 li152-5 postfix/smtpd[5679]: warning: ::1: address not listed for hostname localhost
Jan 29 14:50:02 li152-5 postfix/smtpd[5679]: connect from unknown[::1]
Jan 29 14:50:02 li152-5 postfix/smtpd[5679]: lost connection after CONNECT from unknown[::1]
Jan 29 14:50:02 li152-5 postfix/smtpd[5679]: disconnect from unknown[::1]
Jan 29 14:55:01 li152-5 imapd: Connection, ip=[::1]
Jan 29 14:55:01 li152-5 imapd: Disconnected, ip=[::1], time=0
Jan 29 14:55:01 li152-5 pop3d: Connection, ip=[::1]
Jan 29 14:55:01 li152-5 pop3d: Disconnected, ip=[::1]
Jan 29 14:55:01 li152-5 postfix/smtpd[5733]: warning: ::1: address not listed for hostname localhost
Jan 29 14:55:01 li152-5 postfix/smtpd[5733]: connect from unknown[::1]
Jan 29 14:55:01 li152-5 postfix/smtpd[5733]: lost connection after CONNECT from unknown[::1]
Jan 29 14:55:01 li152-5 postfix/smtpd[5733]: disconnect from unknown[::1]
Jan 29 15:00:01 li152-5 imapd: Connection, ip=[::1]
Jan 29 15:00:01 li152-5 pop3d: Connection, ip=[::1]
Jan 29 15:00:01 li152-5 pop3d: Disconnected, ip=[::1]
Jan 29 15:00:01 li152-5 imapd: Disconnected, ip=[::1], time=0
Jan 29 15:00:01 li152-5 postfix/smtpd[5787]: warning: ::1: address not listed for hostname localhost
Jan 29 15:00:01 li152-5 postfix/smtpd[5787]: connect from unknown[::1]
Jan 29 15:00:01 li152-5 postfix/smtpd[5787]: lost connection after CONNECT from unknown[::1]
Jan 29 15:00:01 li152-5 postfix/smtpd[5787]: disconnect from unknown[::1]
Jan 29 15:05:01 li152-5 imapd: Connection, ip=[::1]
Jan 29 15:05:01 li152-5 imapd: Disconnected, ip=[::1], time=0
Jan 29 15:05:01 li152-5 pop3d: Connection, ip=[::1]
Jan 29 15:05:01 li152-5 pop3d: Disconnected, ip=[::1]
Jan 29 15:05:01 li152-5 postfix/smtpd[5855]: warning: ::1: address not listed for hostname localhost
Jan 29 15:05:01 li152-5 postfix/smtpd[5855]: connect from unknown[::1]
Jan 29 15:05:01 li152-5 postfix/smtpd[5855]: lost connection after CONNECT from unknown[::1]
Jan 29 15:05:01 li152-5 postfix/smtpd[5855]: disconnect from unknown[::1]
Jan 29 15:10:01 li152-5 pop3d: Connection, ip=[::1]
Jan 29 15:10:01 li152-5 pop3d: Disconnected, ip=[::1]
Jan 29 15:10:01 li152-5 imapd: Connection, ip=[::1]
Jan 29 15:10:01 li152-5 imapd: Disconnected, ip=[::1], time=0
Jan 29 15:10:01 li152-5 postfix/smtpd[5921]: warning: ::1: address not listed for hostname localhost
Jan 29 15:10:01 li152-5 postfix/smtpd[5921]: connect from unknown[::1]
Jan 29 15:10:01 li152-5 postfix/smtpd[5921]: lost connection after CONNECT from unknown[::1]
Jan 29 15:10:01 li152-5 postfix/smtpd[5921]: disconnect from unknown[::1]
Jan 29 15:15:01 li152-5 imapd: Connection, ip=[::1]
Jan 29 15:15:01 li152-5 imapd: Disconnected, ip=[::1], time=0
Jan 29 15:15:01 li152-5 pop3d: Connection, ip=[::1]
Jan 29 15:15:01 li152-5 pop3d: Disconnected, ip=[::1]
Jan 29 15:15:01 li152-5 postfix/smtpd[5975]: warning: ::1: address not listed for hostname localhost
Jan 29 15:15:01 li152-5 postfix/smtpd[5975]: connect from unknown[::1]
Jan 29 15:15:01 li152-5 postfix/smtpd[5975]: lost connection after CONNECT from unknown[::1]
Jan 29 15:15:01 li152-5 postfix/smtpd[5975]: disconnect from unknown[::1]
Jan 29 15:20:02 li152-5 imapd: Connection, ip=[::1]
Jan 29 15:20:02 li152-5 imapd: Disconnected, ip=[::1], time=0
Jan 29 15:20:02 li152-5 pop3d: Connection, ip=[::1]
Jan 29 15:20:02 li152-5 pop3d: Disconnected, ip=[::1]
Jan 29 15:20:02 li152-5 postfix/smtpd[6036]: warning: ::1: address not listed for hostname localhost
Jan 29 15:20:02 li152-5 postfix/smtpd[6036]: connect from unknown[::1]
Jan 29 15:20:02 li152-5 postfix/smtpd[6036]: lost connection after CONNECT from unknown[::1]
Jan 29 15:20:02 li152-5 postfix/smtpd[6036]: disconnect from unknown[::1]
Reply With Quote
  #7  
Old 29th January 2010, 17:40
allbestmp allbestmp is offline
Junior Member
 
Join Date: Jan 2010
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

on the line

Quote:
Jan 29 14:26:45 li152-5 postfix/smtp[5408]: connect to li101-111.members.linode.com[97.107.140.111]:25: Connection timed out
seems like postfix is trying to connect to my old fqdn and ip address, how can I correct it?

Thanks again
Reply With Quote
  #8  
Old 29th January 2010, 18:00
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

Check /etc/hosts and also your dns server and the hostname in postfix main.cf and the file /etc/hostname.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #9  
Old 29th January 2010, 18:41
allbestmp allbestmp is offline
Junior Member
 
Join Date: Jan 2010
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is my etc/hosts

Quote:
127.0.0.1 localhost.localdomain localhost
109.74.205.5 li152-5.members.linode.com li152-5

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
It seems no problem here

this is my ect/hostname

Quote:
li152-5.members.linode.com
and this is correct too

and this is my postfix main.cf

Quote:
myhostname = li152-5.members.linode.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = li152-5.members.linode.com, localhost, localhost.localdomain
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
html_directory = /usr/share/doc/postfix/html
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mys$
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /var/vmail
virtual_uid_maps = static:5000
everything seems fine to me here too

Any suggestion?
Thank you

Last edited by allbestmp; 29th January 2010 at 21:31.
Reply With Quote
  #10  
Old 30th January 2010, 17:16
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
 
Default

What's in /etc/mailname? What are the outputs of
Code:
hostname
and
Code:
hostname -f
?
__________________
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
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
Mail server using Postfix, Dovecot, Mysql... Postfix virtual maps doesn't work?? tarasbuljba HOWTO-Related Questions 33 28th May 2010 15:33
CGI and FormMail Cracklefish Installation/Configuration 17 13th October 2009 14:40
421 Unexpected failure Lizard King Installation/Configuration 20 7th July 2009 21:43
Help configure Postfix to use alt port 465 or 587 BoloMarkIII Installation/Configuration 10 16th March 2009 18:57
Filtering emails using Spamassassin and Clamav for Exchange 2000 Server Rocky Server Operation 19 11th March 2008 09:27


All times are GMT +2. The time now is 16:24.


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