LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-07-2004, 06:08 PM   #1
nidputerguy
Member
 
Registered: Oct 2003
Posts: 47

Rep: Reputation: 15
postfix aliases\users help


I have a functioning domain with correct dns records. My postfix server can send mail to my yahoo.com account. yahoo puts it in my bulk folder but it's still a step in the right direction. The problem I have is that incoming mail does not get delivered to the /var/mail user mail file. I'm not using another MDA. My real problem is that after digging through all the documentation I can find I don't understand how postfix knows where to deliver mail to. I also don't understand the aliases files. I don't know if you need them or if they are optional. I also don't really understand what they do. I also don't understand the newaliases command and when to use it. The postfix site is fairly decent but it assumes you were a sendmail admin. Any help or perhaps a link to a forum devoted to postfix would be appreciated. I'm not looking for a fix as much as understanding about his process.

Thanks all!
 
Old 02-07-2004, 07:25 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
newaliase is suppose to be run when you add a new alias to the alias file.

As far as where the mail gets delivered, you should have a setting like this somewhere in main.cf (the postfix config. file): home_mailbox = .maildir/

What this says is by default a users mail on the system goes into there home directory in the .maildir/ sub directory. This assumes you have postfix setup to do maildir's, I am not sure what the exact syntax is if you use mbox (why use mbox when you can use maildir though!) but I am sure it is similar.
 
Old 02-07-2004, 09:58 PM   #3
nidputerguy
Member
 
Registered: Oct 2003
Posts: 47

Original Poster
Rep: Reputation: 15
aliases

Does every mail recipient have to be in the aliases file? I was under the impression for some reason that postfix would deliver to any account on the system that matches incoming mail? I think I might be way off on this.
 
Old 02-07-2004, 10:05 PM   #4
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
You are correct. The alias file is only for aliases Providing that you have postfix setup with the correct place to deliver the messages and that place exists all users shoudl be able to recieve mail on the system. What does /var/log/mail.log and /var/log/mail.err say?
 
Old 02-08-2004, 12:52 PM   #5
nidputerguy
Member
 
Registered: Oct 2003
Posts: 47

Original Poster
Rep: Reputation: 15
I don't have a mail.err file. Mine has a maillog file. I'm getting a: fatal: open database /etc/aliases.db : no such file error. I have commented out any reference to db files in my main.cf. Why is it looking for this file?

Thanks!
 
Old 02-08-2004, 12:57 PM   #6
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Do you have a /etc/alias file? if so typing running the newalias program will build that db file.
 
Old 02-08-2004, 02:38 PM   #7
nidputerguy
Member
 
Registered: Oct 2003
Posts: 47

Original Poster
Rep: Reputation: 15
But does postfix even need that file to work?
 
Old 02-08-2004, 02:59 PM   #8
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
I dunno but you want that file. To be a good mail admin there are certain aliases you really are expected to setup (postmaster, hostmaster, abuse...). Those are the addresses other mail servers are likely to send mail to if they detect a problem. If you need an alias file here is an example:

Code:
# Basic system aliases -- these MUST be present.
MAILER-DAEMON:      postmaster
postmaster:         root

# General redirections for pseudo accounts.
adm:                root
bin:                root
daemon:             root
exim:               root
lp:                 root
mail:               root
named:              root
nobody:             root
postfix:            root

# Well-known aliases -- these should be filled in!
# root:
# operator:

# Standard RFC2142 aliases
abuse:              postmaster
ftp:                root
hostmaster:         root
news:               usenet
noc:                root
security:           root
usenet:             root
uucp:               root
webmaster:          root
www:                webmaster
root:               jshaw

# trap decode to catch security attacks
decode:           /dev/null

Last edited by jtshaw; 02-08-2004 at 03:00 PM.
 
Old 02-08-2004, 03:04 PM   #9
nidputerguy
Member
 
Registered: Oct 2003
Posts: 47

Original Poster
Rep: Reputation: 15
This is starting to make a little more sense. If I were to have aliases for users would they go in this same file or is there another file that those aliases go into? I appreciate the help on this. Postfix seems like a good MTA but the documentation wasn't ever reviewed by someone without mail experience. I think why that file isn't in that location is that this is a RH8 distro. I'm adding one package at a time starting with a barebones system. I think that RH designed this to be installed along with sendmail and then you were supposed to use RH's switcher program.
 
Old 02-08-2004, 03:22 PM   #10
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Ahh, could be. You can put all your aliases in that file, I would just put a comment that says User Aliases so it is easy to figure out which ones are which (not that it is too hard to begin with).
 
Old 02-08-2004, 09:16 PM   #11
nidputerguy
Member
 
Registered: Oct 2003
Posts: 47

Original Poster
Rep: Reputation: 15
Thanks JT! I just recieved mail from my yahoo account! Man I'm stoked! I definetly appreciate the help. All I had to do was copy the default aliases and aliases.db into my etc folder and all was well. I tried to point the path in main.cf to to my postfix folder where these files were but I didn't know what to put in for file type.
 
Old 02-08-2004, 09:18 PM   #12
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
No problem, glad I could help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix Aliases & Active Directory paul_mat Linux - Networking 0 11-17-2005 12:09 AM
How to setup aliases in postfix? (Debian) Jeozp Linux - Software 1 02-03-2005 01:52 PM
postfix and mysql aliases problem paintcheck200 Linux - Networking 0 01-06-2005 10:22 PM
Postfix aliases riotpunk Linux - Software 1 07-23-2004 04:39 AM
Postfix and the aliases file MasterC Linux - General 5 01-16-2003 04:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration