View previous topic :: View next topic |
Author |
Message |
G-Style Apprentice
Joined: 10 Nov 2003 Posts: 275 Location: Toronto, Canada
|
Posted: Mon Mar 15, 2004 5:29 pm Post subject: Mail Server Problems |
|
|
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 |
|
|
kashani Advocate
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Mon Mar 15, 2004 6:14 pm Post subject: |
|
|
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 |
|
|
ltj n00b
Joined: 13 Feb 2004 Posts: 10 Location: Denmark
|
Posted: Mon Mar 15, 2004 11:20 pm Post subject: |
|
|
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 |
|
|
G-Style Apprentice
Joined: 10 Nov 2003 Posts: 275 Location: Toronto, Canada
|
Posted: Tue Mar 16, 2004 2:40 am Post subject: |
|
|
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 |
|
|
kashani Advocate
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Tue Mar 16, 2004 7:14 am Post subject: |
|
|
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 |
|
|
cayenne l33t
Joined: 17 Oct 2002 Posts: 945 Location: New Orleans
|
Posted: Sun Mar 28, 2004 10:10 pm Post subject: strange... |
|
|
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 |
|
|
|