Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mail Server Problems
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
G-Style
Apprentice
Apprentice


Joined: 10 Nov 2003
Posts: 275
Location: Toronto, Canada

PostPosted: Mon Mar 15, 2004 5:29 pm    Post subject: Mail Server Problems Reply with quote

I've been following the guide on build a mail server using postfix but when I get to the point that deals with aliases, it can't find the mail directory. Can someone tell me how i can actually get the mail dir in my /etc so I can continue with the installation?
_________________
Mastering Windows isn't impressive. But mastering Linux is.
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Mon Mar 15, 2004 6:14 pm    Post subject: Reply with quote

I assume you're talking aobut /etc/mail/ not existing and therefore you can't find /etc/mail/aliases, yes? That's strange as I beleive it's part of mailbase which is a prereq for all the mail servers. On my Postfix sytem the only file in there is aliases and aliases.db which is created after running newaliases.

Got ahead and create /etc/mail/aliases using this source file /usr/share/doc/postfix-2.0.16-r1/defaults/aliases Then edit as appropiate.

Should be owned to root and have permissions of 644 on aliases.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
ltj
n00b
n00b


Joined: 13 Feb 2004
Posts: 10
Location: Denmark

PostPosted: Mon Mar 15, 2004 11:20 pm    Post subject: Reply with quote

I find that setting alias_maps in main.cf to my liking, and then using the postalias <my_path_to_alias_file> command works fine.

Regards.
Back to top
View user's profile Send private message
G-Style
Apprentice
Apprentice


Joined: 10 Nov 2003
Posts: 275
Location: Toronto, Canada

PostPosted: Tue Mar 16, 2004 2:40 am    Post subject: Reply with quote

kashani wrote:
I assume you're talking aobut /etc/mail/ not existing and therefore you can't find /etc/mail/aliases, yes? That's strange as I beleive it's part of mailbase which is a prereq for all the mail servers. On my Postfix sytem the only file in there is aliases and aliases.db which is created after running newaliases.

Got ahead and create /etc/mail/aliases using this source file /usr/share/doc/postfix-2.0.16-r1/defaults/aliases Then edit as appropiate.

Should be owned to root and have permissions of 644 on aliases.

kashani

Thanks for the help.

But now I having some problems getting postfix to start through the command /etc/init.d/postfix start, so I'm trying to find the error logs to see what the problem exactly is but I later find out that there is no error logs for postfix. Is the error logs suppose to be in /var/log/mail.log because I can't find them there.
_________________
Mastering Windows isn't impressive. But mastering Linux is.
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Tue Mar 16, 2004 7:14 am    Post subject: Reply with quote

If you're running syslog-ng your logs are most likely ending up in /var/log/messages There are a few forum posts and adding fitlering to the /etc/syslog-ng/syslog-ng.conf file so that mail logs to mail.log and so forth.

Postfix has issues if you don't run newaliases first to create /etc/mail/aliases.db.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
cayenne
l33t
l33t


Joined: 17 Oct 2002
Posts: 945
Location: New Orleans

PostPosted: Sun Mar 28, 2004 10:10 pm    Post subject: strange... Reply with quote

I have the opposite problem...

I try newaliases, and I get the error:
postalias: fatal: open /etc/aliases: No such file or directory


it looks for /etc/aliases instead of /etc/mail/aliases

How do I change where newaliases looks ?

tia,

cayenne

EDIT: Ok, solved this one...had to edit in main.conf of postfix, to point the aliases_db parameter to the correct directory...worked after that!!

Now, on to bigger and better config problems!!

Thanx!!
_________________
Light travels faster than sound. This is why some people appear bright until you hear them speak.........
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