Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 04-12-2009, 07:05 PM   #1
Registered: Aug 2008
Posts: 45

Rep: Reputation: 16
Postfix help

Ok, I finally got postfix set up to accept messages for virtual domains. I do not quite understand why messages addressed to these new virtual users do not store in a file similar to regular users.

For instance, messages addressed directly to the server, the "non-virtual" host, are stored in


and the next messages is appended to USERNAME. However for the virtual mailboxes, they are stored like this:

with new, cur and tmp (maildir format?)

and in side the 'new' folder each message is its own mail file. What gives. I would like my virtual boxes to store like this:


where the new messages append to USERNAME.

Thanks in advance.
Old 04-13-2009, 12:43 AM   #2
Registered: Aug 2008
Posts: 45

Original Poster
Rep: Reputation: 16
Ok, maybe my will help defuse the situation.

# See /usr/share/postfix/ for a commented, more complete version

# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = beta.******.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = beta.******.com, localhost.******.com, , localhost
relayhost = 
mynetworks = [::ffff:]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all

virtual_mailbox_domains = /etc/postfix/vhosts
virtual_mailbox_base = /home/vmail
virtual_mailbox_maps = hash:/etc/postfix/vmaps
virtual_minimum_uid = 1000
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
Old 04-13-2009, 02:49 AM   #3
Registered: Aug 2008
Posts: 45

Original Poster
Rep: Reputation: 16
I apologize, the problem was in my virtual_mailbox_maps config file:

#regular format
acmeinc@test.*******.com test.*******.com/acmeinc 
#maildir format, trailing slash
acmeinc@test.*******.com test.*******.com/acmeinc/
Solved, mail server now works beautifully.


mailboxes, maildir, postfix, virtual

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
how to make postfix send email to another postfix in local network (LAN)? h4k33m Linux - Server 9 06-04-2015 04:33 PM
Removed Citadel and installed Postfix, Postfix acting funny?? kayasaman Linux - Server 49 10-07-2008 08:06 PM
Postfix: postfix: fatal: chdir(/usr/libexec/postfix) Micro420 Ubuntu 2 07-13-2008 12:21 PM
Postfix error: /usr/lib/postfix/smtpd pid 7529 exit status 1 Chiragrs Linux - Networking 7 05-16-2008 12:42 AM
Postfix Configuration Question: Postfix server as a catch-all on office LAN enso491 Linux - Server 5 04-14-2008 04:35 PM > Forums > Linux Forums > Linux - Server

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration