LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-12-2009, 07:05 PM   #1
acmeinc
Member
 
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

/var/mail/USERNAME

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

/home/vmail/DOMAIN/USERNAME/
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:

/home/vmail/DOMAIN/USERNAME

where the new messages append to USERNAME.

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

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

Code:
# See /usr/share/postfix/main.cf.dist 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_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
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 = 127.0.0.0/8 [::ffff:127.0.0.0]/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
acmeinc
Member
 
Registered: Aug 2008
Posts: 45

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

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


Reply

Tags
mailboxes, maildir, postfix, virtual



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:05 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