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 9th February 2009, 00:02
bpmee bpmee is offline
Member
 
Join Date: Aug 2006
Posts: 86
Thanks: 3
Thanked 5 Times in 5 Posts
Red face Postfix NOT delivering Mail from /var/spool/mail/user to Maildir

Hello,

I am very frustrated with Postfix. I just can't get it right...

Rightnow, I have an email address: admin@web.com , as user web1_adminwebcom .

I've set ISPconfig to "Maildir". Mail comes to the server without issue, but instead of being sent over to the user's mail folder, it sits in /var/spool/mail/web1_adminwebcom . Any new mail is appended to this file, so the mail never makes it to the user's inbox.

I've tried the following;

1. Maildir is set in Server Config
2. /home/www/web1/.procmailrc is chmod 0640 (initially it was 0644 and this was causing an "suspicious file error, this is now functiong OK)
3. Chown /var/mail is root:mail , chomd 0777
4. The user file in /var/mail/spool is Chown web1_adminwebcom:mail chmod 0600

5. I've looked around the forum where similar issues have occured, but no remedy is working.

Any help would be greatly appreciated....
Reply With Quote
Sponsored Links
  #2  
Old 9th February 2009, 06:46
bpmee bpmee is offline
Member
 
Join Date: Aug 2006
Posts: 86
Thanks: 3
Thanked 5 Times in 5 Posts
Default

Here's my log if it will help, showing the connection from Yahoo.com and delivery that appears to be successful:

Code:

Feb  9 00:36:52 cayenne postfix/smtpd[12721]: connect from web110704.mail.gq1.yahoo.com[67.195.13.211]
Feb  9 00:36:52 cayenne postfix/smtpd[12721]: E056DF8049: client=web110704.mail.gq1.yahoo.com[67.195.13.211]
Feb  9 00:36:53 cayenne postfix/cleanup[12722]: E056DF8049: message-id=<145589.99197.qm@web110704.mail.gq1.yahoo.com>
Feb  9 00:36:53 cayenne postfix/qmgr[10977]: E056DF8049: from=<the123@yahoo.com>, size=1801, nrcpt=1 (queue active)
Feb  9 00:36:53 cayenne postfix/local[12723]: E056DF8049: to=<web1_adminwebcom@server1.popping-host.com>, orig_to=<admin@popping-host.com>, relay=local, delay=0.49, delays=0.48/0/0/0.01, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -f-)
Feb  9 00:36:53 cayenne postfix/qmgr[10977]: E056DF8049: removed
Feb  9 00:36:53 cayenne postfix/smtpd[12721]: disconnect from web110704.mail.gq1.yahoo.com[67.195.13.211]
Local-host-names contains:

Code:
###################################
#
# ISPConfig local-host-names Configuration File
#         Version 1.0
#
###################################
localhost
server1.popping-host.com
localhost.server1.popping-host.com
localhost.popping-host.com
#### MAKE MANUAL ENTRIES BELOW THIS LINE! ####
Virt User Table Contains:
Code:
www.popping-host.com    VIRTUALDOMAIN
admin@www.popping-host.com    web1_adminwebcom
web1_adminwebcom@www.popping-host.com    web1_adminwebcom
popping-host.com    VIRTUALDOMAIN
admin@popping-host.com    web1_adminwebcom
web1_adminwebcom@popping-host.com    web1_adminwebcom
Reply With Quote
  #3  
Old 9th February 2009, 14:38
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,715 Times in 2,557 Posts
Default

What's in /home/www/web1/.procmailrc and /etc/postfix/main.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
  #4  
Old 9th February 2009, 23:58
bpmee bpmee is offline
Member
 
Join Date: Aug 2006
Posts: 86
Thanks: 3
Thanked 5 Times in 5 Posts
Default

Hi Falko,

Thanks for your reply...

Here's .procmailrc:

Code:
MAILDIR=$HOME/Maildir/
DEFAULT=$MAILDIR
ORGMAIL=$MAILDIR

INCLUDERC=/home/www/web1/user/web1_adminwebcom/.mailsize.rc

## INCLUDERC=/home/www/web1/user/web1_adminwebcom/.quota.rc
## INCLUDERC=/home/www/web1/user/web1_adminwebcom/.antivirus.rc
## INCLUDERC=/home/www/web1/user/web1_adminwebcom/.local-rules.rc
## INCLUDERC=/home/www/web1/user/web1_adminwebcom/.html-trap.rc
## INCLUDERC=/home/www/web1/user/web1_adminwebcom/.spamassassin.rc

## INCLUDERC=/home/www/web1/user/web1_adminwebcom/.autoresponder.rc

and main.cf:

Code:
]#postconf -n

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailbox_command =
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = /etc/postfix/local-host-names
mynetworks = 127.0.0.0/8
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
Reply With Quote
  #5  
Old 10th February 2009, 17:19
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,715 Times in 2,557 Posts
Default

Looks ok. Is /home/www/web1 the home directory of web1_adminwebcom?
__________________
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
  #6  
Old 10th February 2009, 19:10
bpmee bpmee is offline
Member
 
Join Date: Aug 2006
Posts: 86
Thanks: 3
Thanked 5 Times in 5 Posts
Default

Hi,

I believe so... here's the output from my shell:

Code:
[root@xxx ~]# cd /home/www/web1
[root@xxx web1]# ls
cgi-bin  log  Maildir  phptmp  ssl  user  web
[root@xxx web1]# cd user
[root@xxx user]# ls -l
total 4
drwxr-xr-x 4 web1_adminwebcom web1 4096 Feb  8 23:57 web1_adminwebcom
[root@xxx user]#
Reply With Quote
  #7  
Old 11th February 2009, 19:19
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,715 Times in 2,557 Posts
Default

What's the output of
Code:
grep web1_adminwebcom /etc/passwd
?
__________________
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 11th February 2009, 20:02
bpmee bpmee is offline
Member
 
Join Date: Aug 2006
Posts: 86
Thanks: 3
Thanked 5 Times in 5 Posts
Default

Hi Falko,

Here's the result from that command:

Code:
[root@xxx user]# grep web1_adminwebcom /etc/passwd
web1_adminwebcom:x:10436:10001:Brendan:/home/www/web1:/bin/false
Thanks for following up on this!
Reply With Quote
  #9  
Old 12th February 2009, 15:30
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,715 Times in 2,557 Posts
Default

Ok, /home/www/web1 is the home directory of web1_adminwebcom.

Can you comment out the line
Code:
INCLUDERC=/home/www/web1/user/web1_adminwebcom/.mailsize.rc
in /home/www/web1/.procmailrc? Where do emails get delivered then?
__________________
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
  #10  
Old 13th February 2009, 06:34
bpmee bpmee is offline
Member
 
Join Date: Aug 2006
Posts: 86
Thanks: 3
Thanked 5 Times in 5 Posts
 
Default

Hi Falko,

The mail goes to web1_adminwebcom file in the /var/mail/spool ...

Note, I do not see any errors in /var/log/maillog or in the individual web1_adminwebcom mail file. The log lists the message as "sent", but when I open up this mail account in Webmail, there is nothing there...

Note also, in /home/www/web1/user/web1_adminwebcom/Maildir/ there is no "uidlist" (or something like that) file, it appears to be missing????
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
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 11:14
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 17:39
just the last step...and it works. Postfix...need help config. ubuntusr Installation/Configuration 1 5th January 2009 09:50
CentoS doesn't send the emails vaio1 Installation/Configuration 18 5th November 2008 17:51
Mail System Error - Returned Mail tristanlee85 General 16 16th March 2008 09:40


All times are GMT +2. The time now is 06:47.


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