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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 5th April 2006, 05:17
benbalbo benbalbo is offline
Member
 
Join Date: Oct 2005
Posts: 50
Thanks: 0
Thanked 4 Times in 4 Posts
Default

I'm responding to this thread as it's related.

When I email a user on my second server this shows up in the logs:

Code:
Apr  4 22:00:24 server2 postfix/cleanup[427]: 60D9320CE04D: message-id=<4433236D.60100@benbalbo.com>
Apr  4 22:00:24 server2 postfix/qmgr[31863]: 60D9320CE04D: from=<ben@benbalbo.com>, size=2322, nrcpt=1 (queue active)
Apr  4 22:00:26 server2 postfix/smtp[31865]: setting up TLS connection to mail.main-domain.com
Apr  4 22:00:26 server2 postfix/smtp[31865]: verify error:num=18:self signed certificate
Apr  4 22:00:26 server2 postfix/smtp[31865]: Peer verification: CommonName in certificate does not match:  != mail.main-domain.com
Apr  4 22:00:27 server2 postfix/smtp[31865]: Peer certificate could not be verified
Apr  4 22:00:27 server2 postfix/smtp[31865]: 60D9320CE04D: to=<web5_user@main-domain.com>, orig_to=<user@client-domain.com>, relay=mail.main-domain.com[***.**.**.**], delay=3, status=bounced (host mail.main-domain.com[***.**.**.**] said: 550 <web5_user@main-domain.com>: Recipient address rejected: User unknown in local recipient table (in reply to RCPT TO command))
Apr  4 22:00:27 server2 postfix/cleanup[427]: F3C2D20CE078: message-id=<20060405020027.F3C2D20CE078@server2.main-domain.com>
Apr  4 22:00:28 server2 postfix/qmgr[31863]: F3C2D20CE078: from=<>, size=4391, nrcpt=1 (queue active)
Apr  4 22:00:28 server2 postfix/qmgr[31863]: 60D9320CE04D: removed
Apr  4 22:00:29 server2 postfix/smtp[31865]: setting up TLS connection to main-domain.com
Apr  4 22:00:29 server2 postfix/smtp[31865]: verify error:num=18:self signed certificate
Apr  4 22:00:29 server2 postfix/smtp[31865]: Peer verification: CommonName in certificate does not match:  != main-domain.com
Apr  4 22:00:30 server2 postfix/smtp[31865]: Peer certificate could not be verified
Apr  4 22:00:31 server2 postfix/smtp[31865]: F3C2D20CE078: to=<ben@benbalbo.com>, relay=main-domain.com[***.**.**.**], delay=4, status=sent (250 Ok: queued as 079B9529C03B)
Apr  4 22:00:31 server2 postfix/qmgr[31863]: F3C2D20CE078: removed
English translation:

I send an email to my client, they are hosted on server2. Server2 receives the request and rewrites to web5_user@main-domain.com, which is server1, so relays it. I get a undeliverable telling me the email address doesn't exist on the server1.

I'm presuming there's a way to change the ispconfig setup to treat the server as server2.main-domain.com, and hence rewrite the email address to web5_user@server2.main-domain.com?

I was going to try changing (in Management > Server > Settings > Server Tab) from:
Hostname: server2
Domain: main-domain.com

to:
Hostname:
Domain: server2.main-domain.com

I just want to see what the preferred method of making this server deliver mail locally is, rather than changing these settings and potentially bringing the server down horribly.

Thanks in advance!

Ben
Reply With Quote
Sponsored Links
  #12  
Old 6th April 2006, 01:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

If you want the server to deliver mails for main-domain.com locally, then main-domain.com must be listed in /etc/postfix/local-host-names.
__________________
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
  #13  
Old 6th April 2006, 09:22
benbalbo benbalbo is offline
Member
 
Join Date: Oct 2005
Posts: 50
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by falko
If you want the server to deliver mails for main-domain.com locally, then main-domain.com must be listed in /etc/postfix/local-host-names.
I don't.

An email for ben@main-domain.com should go to server1.

An email to bob@client.com should go to server2.

The problem is server2 rewrites bob@client.com to web1_bob@main-domain.com. It should rewrite it to web1_bob@server2.main-domain.com.

Hope this explains my problem more clearly
Reply With Quote
  #14  
Old 6th April 2006, 12:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Please post /etc/postfix/main.cf here.
Is main-domain.com listed in /etc/postfix/local-host-names?
__________________
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
  #15  
Old 7th April 2006, 08:01
benbalbo benbalbo is offline
Member
 
Join Date: Oct 2005
Posts: 50
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by falko
Please post /etc/postfix/main.cf here.
Code:
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

myhostname = server2.main-domain.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
home_mailbox = Maildir/

virtual_maps = hash:/etc/postfix/virtusertable

mydestination = /etc/postfix/local-host-names
Quote:
Originally Posted by falko
Is main-domain.com listed in /etc/postfix/local-host-names?
No, only server2.main-domain.com, localhost.server2.main-domain.com and localhost.main-domain.com.

Thanks!

BB
Reply With Quote
  #16  
Old 7th April 2006, 12:57
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Please try this:
Code:
postconf -e 'mydomain = $myhostname'
Then restart Postfix.
__________________
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
  #17  
Old 10th April 2006, 11:16
benbalbo benbalbo is offline
Member
 
Join Date: Oct 2005
Posts: 50
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Unfortunately it's still rewriting to web1_bob@main-domain.com :-(

Would my original suggestion of changing the hostname to "" and domain name to "sever2.main-domain.com" in the ispconfig Management > Server > Settings > Server Tab work? Would it break anything?

Reason I ask is because I noticed I need to move the hostname to the domain name box when creating new webs using the same domain name, otherwise the entry in local-host-names is incorrect, but that may be a totally different issue.

Thanks for your continued help and support!

BB
Reply With Quote
  #18  
Old 10th April 2006, 19:10
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Quote:
Originally Posted by benbalbo
Unfortunately it's still rewriting to web1_bob@main-domain.com :-(
What's the output of
Code:
hostname
and
Code:
hostname -f
? What's in /etc/hosts?

Quote:
Originally Posted by benbalbo
Would my original suggestion of changing the hostname to "" and domain name to "sever2.main-domain.com" in the ispconfig Management > Server > Settings > Server Tab work? Would it break anything?
It wouldn't change anything so don't do it.
__________________
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
  #19  
Old 11th April 2006, 07:12
benbalbo benbalbo is offline
Member
 
Join Date: Oct 2005
Posts: 50
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by falko
What's the output of
Code:
hostname
and
Code:
hostname -f
? What's in /etc/hosts?
Code:
# hostname
server2.main-domain.com
# hostname -f
server2.main-domain.com
# cat /etc/hosts
127.0.0.1  server2.main-domain.com server2 localhost localhost.localdomain
Reply With Quote
  #20  
Old 11th April 2006, 15:29
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
 
Default

What's the output of
Code:
postconf -n
?
__________________
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
Can't receive email mzo Installation/Configuration 17 3rd November 2011 16:59
Statistic not working mzo Installation/Configuration 49 20th April 2011 13:19
Email - Ueb-Miau mazhar Installation/Configuration 5 21st December 2005 11:01
Server Not Autorative for Domain Error drbista Installation/Configuration 10 20th December 2005 17:41
The Perfect Setup Suse 9.3 - Postfix problems new_bee05 HOWTO-Related Questions 20 25th November 2005 03:30


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


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