| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-12-2009, 07:05 PM
|
#1
|
|
Member
Registered: Aug 2008
Posts: 45
Rep:
|
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.
|
|
|
|
04-13-2009, 12:43 AM
|
#2
|
|
Member
Registered: Aug 2008
Posts: 45
Original Poster
Rep:
|
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
|
|
|
|
04-13-2009, 02:49 AM
|
#3
|
|
Member
Registered: Aug 2008
Posts: 45
Original Poster
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:50 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|