LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 03-04-2006, 08:38 AM   #1
ToothlessRebel
Member
 
Registered: Jun 2004
Location: FL, USA
Distribution: Slackware 9.1
Posts: 190

Rep: Reputation: 30
Postfix Configuration


Trying to configure postfix on a machine, following the postfix HOWTO on the website and after editing /etc/postfix/main.cf I get get an error from postfix reload. The error is as follows:

Quote:
postfix: fatal: file /etc/postfix/main.cf: parameter mail_owner: unknown user name value: postfix myorigin = toothlessrebel.org mydestination = toothlessrebel.org, brandontechclub.org
$myorigin should be fine, most mail leaving this machine is nothing and can be marked from that domain.

$mydestination I believe is correct, as the server should eventually expect mail from both of these domains.

mail_owner is a major problem. I believe the user exists, from /etc/passwd:

Quote:
postfix::5000:102:postfix user::/bin/bash
Also, I can su to the user from the root account.

This is what I believe to be the pertinent portion of /etc/postfix/main.cf:

Quote:
# QUEUE AND PROCESS OWNERSHIP
#
# The mail_owner parameter specifies the owner of the Postfix queue
# and of most Postfix daemon processes. Specify the name of a user
# account THAT DOES NOT SHARE ITS USER OR GROUP ID WITH OTHER ACCOUNTS
# AND THAT OWNS NO OTHER FILES OR PROCESSES ON THE SYSTEM. In
# particular, don't specify nobody or daemon. PLEASE USE A DEDICATED
# USER.
#
mail_owner = postfix
Thank you in advance for any help you can offer.

-TR
 
Old 03-04-2006, 10:51 AM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Make sure there are no spaces and tabs following newlines, unless you want to continue a line. Looking at the error leads me to believe that your config looks something like
Code:
mail_owner = postfix 
 myorigin = toothlessrebel.org 
 mydestination = toothlessrebel.org, brandontechclub.org
instead of
Code:
mail_owner = postfix 
myorigin = toothlessrebel.org 
mydestination = toothlessrebel.org, brandontechclub.org
 
Old 03-04-2006, 01:11 PM   #3
ToothlessRebel
Member
 
Registered: Jun 2004
Location: FL, USA
Distribution: Slackware 9.1
Posts: 190

Original Poster
Rep: Reputation: 30
Thanks

Yeah, that was what was causing the error when the script was read. postfix now runs, but not properly. Trying to see what it is and is not doing, then will re-post.
 
Old 03-04-2006, 01:14 PM   #4
ToothlessRebel
Member
 
Registered: Jun 2004
Location: FL, USA
Distribution: Slackware 9.1
Posts: 190

Original Poster
Rep: Reputation: 30
Does localhost need to me in mydestination for local mail delivery? If I type:
Code:
$ mail marshall
Subject: Test
Test
EOT
$
That user never receives any mail and I am not sure where to look to determine the error.
 
Old 03-04-2006, 03:13 PM   #5
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
The mail programme doesn't use postfix, just local mailboxes in mbox format.

To test the smtp protocol, follow the following..
http://www.netadmintools.com/art276.html
 
Old 03-04-2006, 04:46 PM   #6
ToothlessRebel
Member
 
Registered: Jun 2004
Location: FL, USA
Distribution: Slackware 9.1
Posts: 190

Original Poster
Rep: Reputation: 30
Umm...

Don't recognize anything in the mentioned article, and reading it over and trying to gleen what I can from it. As a side note, that form of the usage mail worked before I screwed up sendmail and decided to use postfix. Also, my machine can send mail to an outsail receipiant.
 
Old 03-04-2006, 09:18 PM   #7
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Make sure postfix is even running. It may not be after changing mail_owner. Probably a good idea to run 'postfix set-permissions'. Also check the logs (might be /var/log/maillog).
 
Old 03-05-2006, 01:34 AM   #8
ToothlessRebel
Member
 
Registered: Jun 2004
Location: FL, USA
Distribution: Slackware 9.1
Posts: 190

Original Poster
Rep: Reputation: 30
Code:
Mar  4 15:08:21 toothlessrebel postfix/local[1445]: fatal: open database  
  /etc/aliases.db: No such file or directory
Thinking that may be the issue?
 
Old 03-05-2006, 02:10 AM   #9
ToothlessRebel
Member
 
Registered: Jun 2004
Location: FL, USA
Distribution: Slackware 9.1
Posts: 190

Original Poster
Rep: Reputation: 30
newaliases command fixed that... on to configured it to receive email, then POP3!

Thanks all.
 
  


Reply



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 configuration jkmartha Linux - Newbie 1 04-22-2005 02:29 AM
Postfix configuration RomanG Linux - Newbie 7 04-04-2005 07:38 AM
PostFix Configuration triki Linux - Software 4 12-14-2003 01:08 PM
Postfix configuration EdwinNameless Linux - Software 0 07-18-2003 11:55 AM
Postfix Configuration Graanco Linux - Software 2 07-06-2002 01:32 PM

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

All times are GMT -5. The time now is 03:11 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
Open Source Consulting | Domain Registration