LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-15-2003, 04:14 PM   #1
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Postfix and the aliases file


Hello all you great linux people out there!

How would one get the aliases file to recognize webmaster? Maybe it's just me, but for some reason I cannot get my aliases to recognize it. I have been successful in setting up other aliases, such as Chad: masterc but I cannot get webmaster: masterc to work. I also cannot get Spam: masterc to work either, and am thinking this might be some sort of built in Spam blocker; or that there are built in default "aliases" such as no such user for Spam, and webmaster is... I don't know.

Anyway, can anybody give me any info on aliasing?

Here's what I do:

I open up my aliases file (which is in /etc/aliases and then is also symlinked to /etc/postfix/aliases to ensure they are identical) and edit it to show my new alias I desire:
webmaster: masterc

I then exit, save and run:
postaliases /etc/aliases

I've also (just to see) ran:
postaliases /etc/postfix/aliases

And then restarted postfix:
postfix restart

However, the changes did not stick, or at least it would appear so. When someone tries to send an email to "webmasterATmasterc.no-ip.org" it returns to them as an error in sending, and: "unknown user".

Thanks for any ideas
 
Old 01-16-2003, 02:39 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Original Poster
Rep: Reputation: 69
So uh, Postfix, yeah. It's like Sendmail, anyone got any ideas?

Thanks
 
Old 01-16-2003, 03:13 PM   #3
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
I guess the people whom help the most never get helped themselves

From ALIASES man page"

"Normally, the aliases table is specified as a text file that serves as input to the postalias(1) command. The result, an indexed file in dbm or db format, is used for fast lookup by the mail system. Execute the command newaliases in order to rebuild the indexed file after changing the Postfix alias database."


Hope this helps...
 
Old 01-16-2003, 03:24 PM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Original Poster
Rep: Reputation: 69
Hmmm, so maybe I did rebuild the db, but then forgot to run newaliases...

I'll give it a shot, and thank you very much for you response

Oh, and actually I've been asking alot of questions lately, mainly server related as I got a new project going People on here have been great to help!

Thanks again Bulliver
 
Old 01-16-2003, 03:28 PM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Original Poster
Rep: Reputation: 69
Woohoo! You sir, are the man of day, I'd happily buy you a drink tonight if you were anywhere nearby! Thank you for the snippet from the man page!

How close is Penticon? Anywhere near Vancouver? I'm headin up there tomorrow night, and be glad to buy you a Guiness or 2!

Thank you again, woohoo!

btw, it worked

Cool
 
Old 01-16-2003, 03:40 PM   #6
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
I'm about four hours from Vancouver...guess I'll take a raincheck.

Glad it worked.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix Aliases & Active Directory paul_mat Linux - Networking 0 11-16-2005 11:09 PM
How to setup aliases in postfix? (Debian) Jeozp Linux - Software 1 02-03-2005 12:52 PM
postfix and mysql aliases problem paintcheck200 Linux - Networking 0 01-06-2005 09:22 PM
Postfix aliases riotpunk Linux - Software 1 07-23-2004 03:39 AM
postfix aliases\users help nidputerguy Linux - Networking 11 02-08-2004 08:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:36 PM.

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
Open Source Consulting | Domain Registration