Jump to content
Froxlor Forum
  • 0

[solved] postfix/virtual problem



Hello out there,


due to stage of my rewriting of the mailman module, I needed an email adress in froxlor. In case I was writing and (possible) changing froxlor files, there was no doman and no mailadress configured before.


So I set up a domain (curious, I cannot set up a domain under the main ip of the server, under which I am running the main domain) und an email adress, too.

As I take a look in /var/log/mail.log I saw:

Oct  5 15:57:40 myserver postfix/virtual[29078]: warning: check_dir_size: cannot open directory: /var/customers/mail/customer_demo/bla@customer_domain.tld/new/
Oct  5 15:57:40 myserver postfix/virtual[29078]: warning: check_dir_size: cannot open directory: /var/customers/mail/customer_demo/bla@customer_domain.tld/cur/
Oct  5 15:57:40 myserver postfix/virtual[29078]: warning: check_dir_size: cannot open directory: /var/customers/mail/customer_demo/bla@customer_domain.tld/tmp/
Oct  5 15:57:40 myserver postfix/virtual[29078]: warning: maildir access problem for UID/GID=9997/9997: create maildir file /var/customers/mail/customer_demo/bla@customer_domain.tld/tmp/1286287060.P29078.myserver.de: Permission denied
Oct  5 15:57:40 myserver postfix/virtual[29078]: warning: perhaps you need to create the maildirs in advance
Oct  5 15:57:40 myserver postfix/virtual[29078]: 7C3242A8020: to=<bla@customer_domain.tld>, relay=virtual, delay=0.05, delays=0.03/0/0/0.01, dsn=4.2.0, status=deferred (maildir delivery failed: create maildir file /var/customers/mail/customer_demo/bla@customer_domain.tld/tmp/1286287060.P29078.myserver.de: Permission denied)


Ok, one thing is clear. I've changed /var/customer/mail to /var/kunden/mail, but I've rebuild the config files, and the install instructions for gentoo -> smtp -> postfix/dovecot says:

emerge -av postfix
mkdir -p /var/kunden/mail/
chown -R vmail:vmail /var/kunden/mail/
chmod 0750 /var/kunden/mail/
mv /etc/postfix/main.cf /etc/postfix/main.cf.gentoo


The output of postconf -n is as follows:

 /var/kunden/mail # postconf -n
alias_database = hash:/etc/mail/aliases
alias_maps = $alias_database
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = //usr/lib64/postfix
data_directory = /var/lib/postfix
default_destination_concurrency_limit = 20
html_directory = /usr/share/doc/postfix-2.6.6/html
inet_interfaces = all
local_destination_concurrency_limit = 2
local_transport = local
mail_owner = postfix
mailbox_command = /usr/libexec/dovecot/deliver
mailbox_size_limit = 0
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
message_size_limit = 104857600
mydestination = $myhostname,	$mydomain,  	localhost.$myhostname,  localhost.$mydomain,	localhost
mydomain = myserver
myhostname = myserver
mynetworks =
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/readme
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name (Gentoo/GNU)
smtpd_client_restrictions = permit_mynetworks,  permit_sasl_authenticated,  	reject_unknown_client
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks,   	permit_sasl_authenticated,  	check_policy_service inet:,  	reject_unauth_destination,  	reject_unauth_pipelining,   	reject_non_fqdn_recipient
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = permit_mynetworks,  permit_sasl_authenticated,  	reject_unknown_hostname,    	reject_unknown_recipient_domain,    	reject_unknown_sender_domain
smtpd_tls_CAfile = /etc/ssl/server/www_myserver_de.ca-bundle  # Just an example for CACert.org
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/ssl/server/www_myserver_de.crt
smtpd_tls_key_file = /etc/ssl/server/myserver_de.key
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_alias_maps.cf
virtual_gid_maps = static:9997
virtual_mailbox_base = /var/kunden/mail
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_mailbox_domains.cf
virtual_mailbox_limit = 0
virtual_mailbox_limit_inbox = yes
virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailbox_maps.cf
virtual_maildir_limit_message = Sorry, this user has overdrawn their diskspace quota. Please try again later.
virtual_overquota_bounce = yes
virtual_transport = virtual

so why would postfix write to the (not existing) dir /var/customer?


//Edit: I might add the following

 # id vmail
uid=9997(vmail) gid=9997(vmail) groups=9997(vmail)

Link to post
Share on other sites

1 answer to this question

Recommended Posts


This topic is now archived and is closed to further replies.

This topic is now closed to further replies.
  • Create New...