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
  #1  
Old 10th March 2008, 01:12
catdude catdude is offline
Senior Member
 
Join Date: Jun 2007
Posts: 178
Thanks: 1
Thanked 12 Times in 11 Posts
Default Copy setup to new server, smtp home dir wrong

I'm attempting to set up a failover server for my primary ISPConfig machine. I've got the 2nd machine running, and most functions seem to be running fine. However, when I attempt to send e-mail to domains on the failover box I experience an error. Specifically, postfix logs a message:
"Mar 9 18:59:27 pr-nwtn postfix/local[26491]: F41E44C0BC: to=<test@<customerdomain>.com>, relay=local, delay=17, status=bounced (maildir delivery failed: create /home/test/Maildir/tmp/1205107167.P26491.ga.<work domain>.net: Permission denied)"

The /etc/postfix directory is the same between both machines (aside from adjusting for IP address difference). The /etc/passwd and /etc/shadow files are also the same. /etc/courier/userdb appears to be correct, in that I can make POP and IMAP connections using the same user names and passwords as used on the primary server.

So, where is postfix looking for the home dir to deliver the incoming mail to? What have I likely misconfigured to get Postfix to try to deliver to the wrong directories?
Reply With Quote
Sponsored Links
  #2  
Old 10th March 2008, 08:53
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,670
Thanks: 819
Thanked 5,317 Times in 4,170 Posts
Default

Please double check that all users created by ISPConfig exist with the same home directories on the second server. Compare the two /etc/passwd files for this.

Also post the content of the main.cf file, comments stripped.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 10th March 2008, 14:32
catdude catdude is offline
Senior Member
 
Join Date: Jun 2007
Posts: 178
Thanks: 1
Thanked 12 Times in 11 Posts
Default

Yep, I verified that the target account exists on both machines with the same UID. The user's mail directory exists, same owndership and permissions on both machines.

Further info: most e-mail addresses work. Only a few generate this error. Further testing this morning shed more light. The exact error message was:
Mar 10 08:21:54 pr-nwtn postfix/local[9189]: warning: maildir access problem for UID/GID=15546/100: create /home/test/Maildir/tmp/1205155314.P9189.ga.<work domain>.net: Permission denied

The UID for the target user (test@<client domain>.com)is 17399. The UID in the error message above belongs to a system account for a user named "test". I'm going to try deleting the system account and the malfunctioning user account, then recreate the user account, and see if that changes things any.

main.cf on the new server contains:

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no
myhostname = ga.<work domain>.net
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = /etc/postfix/local-host-names
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
virtual_maps = hash:/etc/postfix/virtusertable
home_mailbox = Maildir/

main.cf from the primary server contains:
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no
myhostname = ge.<work domain>.net
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = /etc/postfix/local-host-names
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
virtual_maps = hash:/etc/postfix/virtusertable
home_mailbox = Maildir/
Reply With Quote
  #4  
Old 11th March 2008, 11:11
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,670
Thanks: 819
Thanked 5,317 Times in 4,170 Posts
 
Default

Quote:
The UID for the target user (test@<client domain>.com)is 17399. The UID in the error message above belongs to a system account for a user named "test". I'm going to try deleting the system account and the malfunctioning user account, then recreate the user account, and see if that changes things any.
This will most likely be the problem.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
php Apps email not going through palkat General 8 21st September 2011 05:35
Server Setup Behind a Router/Firewall/Cable Modem kisong Installation/Configuration 2 1st August 2010 17:05
mail delivered in mbox patfee Installation/Configuration 8 11th December 2007 13:58
Problem with keeping Apache alive bobeq Server Operation 3 29th November 2007 16:11
SP-Server Setup - Ubuntu 5.10 "Breezy Badger" - Page 6 (changes) LuisC-SM HOWTO-Related Questions 0 21st April 2006 15:16


All times are GMT +2. The time now is 15:09.


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