On Thu, Dec 11, 2008 at 01:25:14PM +0100, Gaute Amundsen wrote:
> Slightly OT this, but I can't think on any other obvious place to ask, and an
> hour of googling turned up little.
>
> The question:
> What are my options if I don't want to run a full blown mail server, and
> really only want all mail delivered to a single local mbox or maildir?
What do you mean by "all mail"? Just locally submitted mail, or also
SMTP mail from the Internet for one or more domains?
> Basically I run smartmontools and a number of cronjobs on my laptop and I
> want
> to get the reports and alerts, but I want to avoid the overhead of running
> and
> maintaining a full mailserver.
>
> I have a sneaky feeling that I am somehow not seeing the forest for all the
> trees, or my assumptions are wrong, but I can't put my finger on it..
With Postfix, just make the SMTP server local and make all domains local:
inet_interfaces = 127.0.0.1
mydestination = static:all
alias_maps = static:yourlogin
The only downside is that pickup will wake up every 60 seconds and scan
/var/spool/postfix/maildrop. This may defeat power-management and prevent
the disk from spinning down.
So perhaps you should use Sendmail, with "sendmail -q" run once an hour
from cron, and no sendmail daemon started when the system boots. Configuring
Sendmail to deliver all mail to a single local mailbox is not too difficult,
just short-cut rule-set 0:
S0
$+ $#local $: yourlogin
This has a lower run-time footprint than Postfix.
--
Viktor.
Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.
To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:[EMAIL PROTECTED]>
If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.