2 msg2 postfix server on the same domain in differen...
3 msgmailer-deamon sends error messages to: question
3 msgProcmail
15 msgMAIL FROM timeout with ciphers=high
2 msgmilter, broken pipe
17 msgHow to listen on 587 as well as 25?
6 msgreject_sender_login_mismatch doesnt work
2 msgsmtp auth
4 msgPostfix with MYSQL compile error
8 msgmynetworks=<empty> vs mynetworks=<defa...
3 msgmessage_size_limit with ldap search parameter
2 msgPipe debugging
12 msgdestination_concurrency_limit not respected ?
13 msgVirtual spam forwarding issues
2 msgcleaning up deferred queue
2 msgstatic nexthop per domain
2 msgSimple postmap question
9 msgIssues with Recipient_Canonical mapping
3 msgMail server reboot after got flood

can't create a virtual domain
\ jan gestre (29 Nov 2007)
. \ jan gestre (29 Nov 2007)
. . \ Magnus Bäck (29 Nov 2007)

Subject:can't create a virtual domain
Group:Postfix-users
From:jan gestre
Date:29 Nov 2007


 

Hi Guys,

I'm using postfixadmin to administer my mail server with virtual users and
domain, my current setup is Postfix 2.4 + dovecot 1.0.7 + mysql 5 +
postfixadmin + CentOS 4.5. I've created several virtual domains and added
users as well, tested it by sending emails with no issues, but when I try to
create the virtual domain example.ph, problems came in. As you can see from
the output of 'postconf -n' below, the new virtual domain and mydomain have
the same value, i.e., example.ph. I've looked at the maillog and here is
what it says:

---
Nov 22 14:26:28 mail postfix/trivial-rewrite[4987]: warning: do not list
domain example.ph in BOTH mydestination and virtual_mailbox_domains
Nov 22 14:26:28 mail postfix/smtpd[4985]: 35B7C11F20: client=mail.example.ph
[127.0.0.1]
Nov 22 14:27:21 mail postfix/local[5007]: 0263911F21: to=<jan>,
relay=local, delay=53, delays=52/1.6/0/0.23, dsn=5.1.1, status=bounced
(unknown user: "jan")
---

As you can see, postfix issued a warning and eventually the welcome message
sent when an account is created eventually bounced.
I've also tried changing mydestination to just localhost and deleted
example.ph domain and added it again, but the mail got stuck on queue. What
I want is to be able to create the virtual domain example.ph without postfix
complaining. How do I do this?

TIA.

jan

---POSTCONF -N

[root@mail ~]# postconf -n
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
header_checks = regexp:/etc/postfix/header_checks
html_directory = /usr/share/doc/postfix-2.4.6-documentation/html
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = example.ph
myhostname = mail.example.ph
mynetworks = 192.168.159.0/24, 127.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.4.6-documentation/readme
recipient_delimiter = +
relay_domains = $mydestination
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_recipient_restrictions =
permit_sasl_authenticated
permit_mynetworks
reject_unauth_destination permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_exceptions_networks = $mynetworks
smtpd_sasl_path = /var/run/dovecot/auth-client
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_tls_cert_file = /etc/postfix/ssl/mail-cert.pem
smtpd_tls_key_file = /etc/postfix/ssl/mail-key.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_security_level = may
smtpd_tls_session_cache_database =
btree:/var/spool/postfix/smtpd_tls_session_cache
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
virtual_alias_maps =
proxy:mysql:$config_directory/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:12
virtual_mailbox_base = /home/virtualmail
virtual_mailbox_domains =
proxy:mysql:$config_directory/mysql_virtual_domains_maps.cf
virtual_mailbox_maps =
proxy:mysql:$config_directory/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 150
virtual_transport = dovecot
virtual_uid_maps = static:150



© 2004-2008 readlist.com