Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Local mail setup
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
kernelcowboy
Guru
Guru


Joined: 14 Feb 2004
Posts: 391
Location: New Plymouth, New Zealand

PostPosted: Thu Mar 09, 2006 12:55 am    Post subject: Local mail setup Reply with quote

I followed

http://gentoo-wiki.com/TIP_Postfix_Setup_for_Local_Mail_Only

basically I, installed postfix, configured it for local mail only, and started it.

then did this ...

Code:

% mail -s "test" root
% mail
No mail for root


I choose to use the system mail spool because I didn't think I had to know anything about it and I don't. I have a /var/spool/mail dir, but it is empty.

I'm guessing this is a simple problem for someone. I've never setup this type of mail before, so any obvious help would be great.

Thanks
Back to top
View user's profile Send private message
indynet
Tux's lil' helper
Tux's lil' helper


Joined: 07 Feb 2005
Posts: 108
Location: Prague - Czech Republic

PostPosted: Thu Mar 09, 2006 11:43 am    Post subject: Re: Local mail setup Reply with quote

[quote="kernelcowboy"]I followed

/etc/postfix/master.cf add flag -v to smtp send email again look at log
outup of postconf -n and mailq is also usefull
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Thu Mar 09, 2006 5:17 pm    Post subject: Reply with quote

The TIP says to alias root's mail to a user. Did you do that?
Back to top
View user's profile Send private message
kernelcowboy
Guru
Guru


Joined: 14 Feb 2004
Posts: 391
Location: New Plymouth, New Zealand

PostPosted: Thu Mar 09, 2006 10:32 pm    Post subject: Re: Local mail setup [FIXED] Reply with quote

http://www.postfix.org/faq.html#noalias

I was seeing this in the logs.

Code:
Mar 10 10:56:19 localhost postfix/master[18015]: warning: process /usr/lib/postfix/local pid 18043 exit status 1
Mar 10 10:56:19 localhost postfix/master[18015]: warning: /usr/lib/postfix/local: bad command startup -- throttling
Mar 10 10:57:19 localhost postfix/local[18044]: fatal: open database /etc/aliases.db: No such file or directory


The weird thing is that I could still send mail out to the internet. Must be that aliases are necessary to route incoming mail.

Local mail works fine now.

Note: I didn't have to setup Mail Aliases part of the orignal wiki, as I was just sending to root and a real user.
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