Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Configuration of postfix and mail for local mail only
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Syzygy
n00b
n00b


Joined: 30 Apr 2004
Posts: 31
Location: Beloit, WI

PostPosted: Fri Sep 16, 2005 6:52 pm    Post subject: Configuration of postfix and mail for local mail only Reply with quote

So my Gentoo box is running nearly perfectly. I checked the log files and there were absolutely no errors whatsoever ... except for one. cron was failing to locate postfix so it could send its regular messages to root. So I emerged postfix and added it to rc. No problem. Since I don't want to run a mailserver, and just want postfix to manage local mail, I decided just to use the default conf file. With about a bajillion messages waiting to be sent in the queue it would be a good few hours before postfix processed them all.

They all ended up in /root/.maildir/new. Yet, when I run mail, it claims I have no messages. The MAIL environment variable is not defined. Should I define it? What should I define it to? Basically, how do I tell mail and/or postfix to place messages in or get messages from the correct maildir?

And, in a broader question, is it safe to simply use the default postfix conf file if I don't want any mailserver capabilities at all?

(By the way, installing postfix was the last step to having a completely clean, error-free log history. Yay!)
_________________
Tim Morgan
DP G5/1.8GHz, no working Gentoo (yet...)
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Fri Sep 16, 2005 8:10 pm    Post subject: Reply with quote

First of all, you need to tell your system that you want to use maildirs instead of mboxes - if you set the maildir USE flag and rebuild, say, mailbase or postfix, the variable should be set for you (I never had to specify it by hand).

The shell variables MAIL and MAILDIR should, indeed, be set - if unset, they default to $HOME, which is fine for an mbox, but not a maildir.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum