Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


Search this Thread
Old 06-24-2004, 11:10 PM   #1
Registered: Feb 2003
Distribution: gentoo, ubuntu
Posts: 43

Rep: Reputation: 15
postfix not delivering mail to root

Hello all,

I just set up Postfix using the guides on I'm having some issues I'm not able to find answers to.

I am able to send mail.

I type:

mutt -x root

and away the message goes. Scanning my /var/log/messages, I see that it is sent and there are no errors. However, when I start Mutt it tells me /root/.maildir does not exist and if I would like to create it. Sure. So I eneter 'y'. Now it complains /root/.maildir is not a mailbox. Hmm. I thought Mutt would take care of creating that when I said yes to the first question. I can't seem to find the message I sent above anywhere. It's not listed in /var/spool/mail/root either.

If I use the same command above to send mail to an internet address ( I get the message.

I've gone through my /etc/postfix/ file many times now and compared it with all that I've seen on this site and cannot come up with a reason why I'm not getting mail locally or I'm having issues starting Mutt and accessing .maildir.

postfix check shows no errors. hostname and domainname are set, etc.

Here is a snipets from my /etc/postfix/ that I think are relavant to this. Let me know if more is needed to help me solve this.

Thanks to everyone.

# The myhostname parameter specifies the internet hostname of this
# mail system. The default is to use the fully-qualified domain name
# from gethostname(). $myhostname is used as a default value for many
# other configuration parameters.
myhostname = dove.mail.home
#myhostname = virtual.domain.tld

# The mydomain parameter specifies the local internet domain name.
# The default is to use $myhostname minus the first component.
# $mydomain is used as a default value for many other configuration
# parameters.
mydomain = mail.home

# The myorigin parameter specifies the domain that locally-posted
# mail appears to come from. The default is to append $myhostname,
# which is fine for small sites. If you run a domain with multiple
# machines, you should (1) change this to $mydomain and (2) set up
# a domain-wide alias database that aliases each user to
# user@that.users.mailhost.
# For the sake of consistency between sender and recipient addresses,
# myorigin also specifies the default domain name that is appended
# to recipient addresses that have no @domain part.
myorigin = $myhostname
#myorigin = $mydomain

# The inet_interfaces parameter specifies the network interface
# addresses that this mail system receives mail on. By default,
# the software claims all active interfaces on the machine. The
# parameter also controls delivery of mail to user@[ip.address].
# See also the proxy_interfaces parameter, for network addresses that
# are forwarded to us via a proxy or network address translator.
# Note: you need to stop/start Postfix when this parameter changes.
#inet_interfaces = all
#inet_interfaces = $myhostname
inet_interfaces = $myhostname, localhost
mydestination = $myhostname, localhost.$mydomain


# The home_mailbox parameter specifies the optional pathname of a
# mailbox file relative to a user's home directory. The default
# mailbox file is /var/spool/mail/user or /var/mail/user. Specify
# "Maildir/" for qmail-style delivery (the / is required).
#home_mailbox = Mailbox
home_mailbox = .maildir/

# The mail_spool_directory parameter specifies the directory where
# UNIX-style mailboxes are kept. The default setting depends on the
# system type.
#mail_spool_directory = /var/mail
#mail_spool_directory = /var/spool/mail

# The mailbox_command parameter specifies the optional external
# command to use instead of mailbox delivery. The command is run as
# the recipient with proper HOME, SHELL and LOGNAME environment settings.
# Exception: delivery for root is done as $default_user.
# Other environment variables of interest: USER (recipient username),
# EXTENSION (address extension), DOMAIN (domain part of address),
# and LOCAL (the address localpart).
# Unlike other Postfix configuration parameters, the mailbox_command
# parameter is not subjected to $parameter substitutions. This is to
# make it easier to specify shell syntax (see example below).
# Avoid shell meta characters because they will force Postfix to run
# an expensive shell process. Procmail alone is expensive enough.
#mailbox_command = /usr/bin/procmail
mailbox_command = /usr/bin/procmail -a "$EXTENSION" DEFAULT=$HOME/.maildir/ MAILDIR=$HOME/.maildir
Old 06-25-2004, 01:44 AM   #2
Registered: Oct 2002
Location: Bangalore
Distribution: Gentoo Linux
Posts: 96

Rep: Reputation: 15
In your config, there must be "alias_maps" and "alias_database" variables which define an alias database. In the alias file, root should be aliased to a real user's name. For privacy reasons, postfix does not deliver mail to root.

You might have to rebuild the alias database (using newaliases?).

Oh, by the way, the aliases file will normally be one of /etc/postfix/aliases, /etc/mail/aliases or /etc/aliases.



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/Cyrus Not delivering mail nitsujw Linux - Software 1 07-17-2005 07:16 PM
Postfix+Procmail+Spamassassin delivering to Maildir with underscore. gaslq Linux - Networking 0 09-05-2004 11:36 PM
postfix not delivering mail stir_frey Linux - Software 2 10-10-2003 08:43 AM
Postfix not delivering mail to mailbox DeVryGuy Linux - Software 13 09-22-2003 01:43 AM
POSTFIX not delivering? BxBoy Linux - Software 1 06-04-2003 04:54 PM

All times are GMT -5. The time now is 02:11 PM.

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