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 29th January 2008, 16:29
mikenuun mikenuun is offline
Junior Member
 
Join Date: Sep 2007
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Default Mail delivered in wrong mailbox.

First of all,
Im new to the forums,
So hi anyway ^^

But the reason i came is that im having a weird problem,
Maybe the solution is close, but for me its a weird problem.

I'm Using Postfix to receive mail and to send mail,
And for the right delivery im using procmail,
But hey, procmail does not place it into the right mailbox !

Sending maile is ok,
So the postfix confgiruration is ok for now
Its just that the procmail doenst place the mail in the users mailbox,

Heres my .procmailrc

# .procmailrc
# routes incoming mail to appropriate mailboxes
PATH=/usr/bin:/usr/local/bin
MAILDIR=/var/mail/$USER
DEFAULT=/var/mail/gevonden
LOGFILE=/var/log/procmail.log
SHELL=/bin/sh

Mail always cames at /var/mail/gevonden, doenst matter for what user it is.
But if i chance the default to /var/mail/$USER , it wont receive mail at all
I dont know what to do, i just want procmail to deliver the right mail in the mailbox for the user.

Further Information :
OS : Ubuntu 6.06 LTS
Kernel : Sparc64

Thanks in advance,

Mike Van Nunen
________________
Reply With Quote
Sponsored Links
  #2  
Old 29th January 2008, 17:19
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 154 Times in 151 Posts
Default

If you are using maildir create the file /etc/procmailrc and put this in
Code:
DEFAULT=$HOME/Maildir/ 
MAILDIR=$HOME/Maildir
Also try removing your .procmailrc then test.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
The Following User Says Thank You to topdog For This Useful Post:
mikenuun (31st January 2008)
  #3  
Old 30th January 2008, 16:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Are you using Maildir or mbox? What's the output of
Code:
netstat -tap
?
__________________
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 31st January 2008, 21:48
mikenuun mikenuun is offline
Junior Member
 
Join Date: Sep 2007
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by topdog
If you are using maildir create the file /etc/procmailrc and put this in
Code:
DEFAULT=$HOME/Maildir/ 
MAILDIR=$HOME/Maildir
Also try removing your .procmailrc then test.
Thanks,
This DID solved my problem 100%
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
Postfix problem: lost connection after CONNECT from unknown fernando_torrez Server Operation 5 30th November 2007 15:17
Installation Troubles bswinnerton Installation/Configuration 4 29th July 2007 17:56
Postfix reject connections gabrix Server Operation 27 25th January 2007 09:37
Core 4: Error Messages on Fresh Install re CTX/SSL jjw Installation/Configuration 30 6th September 2006 13:16
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs ebbay Installation/Configuration 9 4th March 2006 12:47


All times are GMT +2. The time now is 01:29.


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