LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-29-2006, 04:08 PM   #1
mazzo
Member
 
Registered: Jun 2003
Location: Thames Valley, UK
Distribution: RedHat from 4 -9, Fedora, Ubuntu, Centos 3 - 7, Puppy Linux, and lots of raspberry pi
Posts: 142

Rep: Reputation: 15
Mail going to user's mbox not /var/spool/mail


Hi

10 mins ago my server was working fine with mail going into the /var/spool/mail folder. Now it is creating an mbox in the user's home folder. I don't know why it has suddenly changed.

I am running CentOS 4.4, with sendmail, procmail and a fully working spamassassin.

I can't think what I have done - although it was working fine until I rebuilt access.db and rebuilt sendmail.cf

The only change I remember making was to allow relay of local network hosts.

Oh - it is using dovecot imap. The default mail directory is /var/spool/mail so again, I don't know what is happening.

Mail is delivered but to the wrong place. Mail clients automatically get the /var/spool/mail/username as their inbox.

Help greatly appreciated.
 
Old 11-29-2006, 04:57 PM   #2
jantman
Member
 
Registered: Nov 2005
Location: New Jersey, USA
Distribution: SuSE
Posts: 492

Rep: Reputation: 31
I'm just (literally) working on a similar project.

Check that procmail, sendmail, and dovecot are all looking for the same mail folder location.

Also, what clients are you using? There are some weird things that happen if you use Pine with this configuration...
 
Old 11-29-2006, 06:23 PM   #3
mazzo
Member
 
Registered: Jun 2003
Location: Thames Valley, UK
Distribution: RedHat from 4 -9, Fedora, Ubuntu, Centos 3 - 7, Puppy Linux, and lots of raspberry pi
Posts: 142

Original Poster
Rep: Reputation: 15
Thanks for the reply. You are right and I was so tired I think I missed it at first. With spamassassin working and individual user .procmailrc, there was a Default Mailbox setting (in each .procmailrc) which pointed to the wrong place (ie ~/mail). Simply commented it out and everything works fine.

BUT - what I don't understand is that it worked for 5 hours sending mail to /var/spool/mail/username and then just switched. Possibly some conflict and it certainly happened after a rebuild of sendmail.

Anyway, I'm just glad it's now working.

Good luck with yours!
 
Old 11-29-2006, 08:19 PM   #4
jantman
Member
 
Registered: Nov 2005
Location: New Jersey, USA
Distribution: SuSE
Posts: 492

Rep: Reputation: 31
Thanks. Mine is going well, I have incoming down, now I just want to set it up so that authenticated remote users can send email to the outside world through my server... I'll probably use postfix and Cyrus SASL.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to open mail spool file /var/mail/root cccc Debian 4 09-14-2006 01:31 PM
spam_buttons move from /var/spool/mail/user to $HOME/mail/Junk paul_mat Linux - Software 0 05-25-2006 02:07 AM
Import Mail from /var/spool/mail (sendmail) to a MailDir Format in Postfix shawnbishop Linux - Software 0 04-06-2006 10:44 AM
Individual user's mail file in /var/spool/mail Swakoo Linux - General 1 09-07-2005 06:33 AM
sendmail error Fetching mail could not lock /var/spool/mail/username sukhdev50 Linux - Networking 0 05-04-2005 03:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration