<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — Catchall not working with aliases]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic3737.xml" />
	<updated>2012-07-31T18:15:28Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic3737-catchall-not-working-with-aliases.html</id>
		<entry>
			<title type="html"><![CDATA[Re: Catchall not working with aliases]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post17350.html#p17350" />
			<content type="html"><![CDATA[<p>Thanks a lot Zhang. We shall upgrade iredmail and will replace all the lookup files with the default one. Shall get back to you after doing this.</p>]]></content>
			<author>
				<name><![CDATA[moyorakkhi]]></name>
				<uri>http://www.iredmail.org/forum/user15834.html</uri>
			</author>
			<updated>2012-07-31T18:15:28Z</updated>
			<id>http://www.iredmail.org/forum/post17350.html#p17350</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Catchall not working with aliases]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post17346.html#p17346" />
			<content type="html"><![CDATA[<p>Also, you&#039;re running iRedMail-0.7.3 and iRedAdmin-Pro-MySQL-1.3.0, please upgrade both to the latest versions: iRedMail-0.8.1, iRedAdmin-Pro-MySQL-1.4.0.</p><p>If you don&#039;t have download link of the latest version of iRedAdmin-Pro-MySQL, please send an email to &quot;support _at_ iredmail.org&quot;, we will send you one as soon as possible.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2012-07-31T15:50:53Z</updated>
			<id>http://www.iredmail.org/forum/post17346.html#p17346</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Catchall not working with aliases]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post17345.html#p17345" />
			<content type="html"><![CDATA[<p>I found the difference.</p><p>Your Postfix parameter:<br /></p><div class="quotebox"><cite>moyorakkhi wrote:</cite><blockquote><p>virtual_alias_maps = proxy:mysql:/etc/postfix/mysql/virtual_alias_maps.cf,<br />&nbsp; &nbsp; proxy:mysql:/etc/postfix/mysql/domain_alias_maps.cf,<br />&nbsp; &nbsp; <span style="color: red">proxy:mysql:/etc/postfix/mysql/domain_alias_maps_alias.cf,</span><br />&nbsp; &nbsp; proxy:mysql:/etc/postfix/mysql/catchall_maps.cf,<br />&nbsp; &nbsp; proxy:mysql:/etc/postfix/mysql/domain_alias_catchall_maps.cf</p></blockquote></div><p>iRedMail default setting:<br /></p><div class="quotebox"><blockquote><p>virtual_alias_maps = proxy:mysql:/etc/postfix/mysql/virtual_alias_maps.cf,<br />&nbsp; &nbsp; proxy:mysql:/etc/postfix/mysql/domain_alias_maps.cf,<br />&nbsp; &nbsp; proxy:mysql:/etc/postfix/mysql/catchall_maps.cf,<br />&nbsp; &nbsp; proxy:mysql:/etc/postfix/mysql/domain_alias_catchall_maps.cf</p></blockquote></div><p>You have addtion lookup map: <span style="color: red">proxy:mysql:/etc/postfix/mysql/domain_alias_maps_alias.cf</span>. What&#039;s it?</p><p>If you find all lookup files used in iRedMail below, please make sure you have correct mysql queries in these lookup files on your server.<br /><a href="https://bitbucket.org/zhb/iredmail/src/33c411a9ac0b/iRedMail/samples/postfix/mysql">https://bitbucket.org/zhb/iredmail/src/ … tfix/mysql</a></p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2012-07-31T15:47:06Z</updated>
			<id>http://www.iredmail.org/forum/post17345.html#p17345</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Catchall not working with aliases]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post17344.html#p17344" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>moyorakkhi wrote:</cite><blockquote><p>xyz@example.com is an alias of abc@example.com</p></blockquote></div><p>I&#039;m wondering how you add this kind of alias.</p><p>With iRedMail default settings, if you have a mailbox &quot;<span style="color: red">abc@</span>example.com&quot;, then create an alias domain &quot;alias.com&quot;, alias mailbox &quot;<span style="color: red">abc@</span>alias.com&quot; will be available automatically.</p><p>You mentions &quot;xyz@&quot; is an alias of &quot;abc@&quot;, ideally, it should work as expected. May i know how you create this kind of alias? Is it just a typo error?</p><p>Here&#039;s my test on local server:</p><p>- Original domain: example.com, user: abc@example.com<br />- Alias domain: alias.com, alias address: abc@alias.com</p><p>Output of commands mentioned in my previous post:<br /></p><div class="quotebox"><blockquote><p># for i in $(ls *cf); do echo $i; postmap -q &#039;abc@example.com&#039; mysql:./$i; done<br />catchall_maps.cf<br />domain_alias_catchall_maps.cf<br />domain_alias_maps.cf<br />recipient_bcc_maps_domain.cf<br />recipient_bcc_maps_user.cf<br />relay_domains.cf<br />sender_bcc_maps_domain.cf<br />sender_bcc_maps_user.cf<br /><span style="color: red">sender_login_maps.cf<br />abc@example.com</span><br />transport_maps_domain.cf<br />transport_maps_user.cf<br />virtual_alias_maps.cf<br />abc@example.com<br />virtual_mailbox_domains.cf<br /><span style="color: red">virtual_mailbox_maps.cf<br />vmail1/example.com/a/b/c/abc-2012.07.31.23.18.04//Maildir/</span></p><br /><p># for i in $(ls *cf); do echo $i; postmap -q &#039;abc@alias.com&#039; mysql:./$i; done <br />catchall_maps.cf<br />domain_alias_catchall_maps.cf<br /><span style="color: red">domain_alias_maps.cf<br />abc@example.com</span><br />recipient_bcc_maps_domain.cf<br />recipient_bcc_maps_user.cf<br />relay_domains.cf<br />sender_bcc_maps_domain.cf<br />sender_bcc_maps_user.cf<br />sender_login_maps.cf<br />transport_maps_domain.cf<br />transport_maps_user.cf<br />virtual_alias_maps.cf<br />virtual_mailbox_domains.cf<br />virtual_mailbox_maps.cf</p></blockquote></div><p>Send an email to both abc@example.com and abc@alias.com, i can receive both testing emails in abc@&#039;s mailbox.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2012-07-31T14:43:21Z</updated>
			<id>http://www.iredmail.org/forum/post17344.html#p17344</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Catchall not working with aliases]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post17342.html#p17342" />
			<content type="html"><![CDATA[<p>Thanks for the response Zhang.</p><p>Here goes the outputs:</p><br /><p>The mailbox:<br /></p><div class="codebox"><pre><code>[root@mail-new mysql]# for cf in $(ls *.cf); do echo ${cf}; postmap -q &#039;odelavega@mvisolutions.com&#039; mysql:./${cf}; done
catchall_maps.cf
domain_alias_catchall_maps.cf
domain_alias_maps_alias.cf
domain_alias_maps.cf
recipient_bcc_maps_domain.cf
recipient_bcc_maps_user.cf
relay_domains.cf
sender_bcc_maps_domain.cf
sender_bcc_maps_user.cf
sender_login_maps.cf
odelavega@mvisolutions.com
transport_maps_domain.cf
transport_maps_user.cf
virtual_alias_maps.cf
virtual_mailbox_domains.cf
virtual_mailbox_maps.cf
vmail1/mvisolutions.com/odelavega</code></pre></div><p>The Alias mailbox:</p><div class="codebox"><pre><code>[root@mail-new mysql]# for cf in $(ls *.cf); do echo ${cf}; postmap -q &#039;tito@mvisolutions.com&#039; mysql:./${cf}; done
catchall_maps.cf
domain_alias_catchall_maps.cf
domain_alias_maps_alias.cf
domain_alias_maps.cf
recipient_bcc_maps_domain.cf
recipient_bcc_maps_user.cf
relay_domains.cf
sender_bcc_maps_domain.cf
sender_bcc_maps_user.cf
sender_login_maps.cf
tito@mvisolutions.com
transport_maps_domain.cf
transport_maps_user.cf
virtual_alias_maps.cf
odelavega@mvisolutions.com
virtual_mailbox_domains.cf
virtual_mailbox_maps.cf
vmail1/mvisolutions.com/tito</code></pre></div><p>Postconf:</p><div class="codebox"><pre><code>alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
allow_min_user = no
biff = no
bounce_queue_lifetime = 1d
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
delay_warning_time = 0h
disable_vrfy_command = yes
enable_original_recipient = no
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = ipv4
mail_owner = postfix
mailbox_command = /usr/libexec/dovecot/deliver
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
maximal_backoff_time = 4000s
maximal_queue_lifetime = 1d
message_size_limit = 26214400
minimal_backoff_time = 300s
mydestination = $myhostname, localhost, localhost.localdomain, localhost.$myhostname
mydomain = mvisolutions.com
myhostname = mail1-new.mvisolutions.com
mynetworks = 127.0.0.0/8, hash:/etc/postfix/pop-before-smtp, 192.168.0.0/24
mynetworks_style = subnet
myorigin = mail-new.mvisolutions.com
newaliases_path = /usr/bin/newaliases.postfix
proxy_read_maps = $canonical_maps $lmtp_generic_maps $local_recipient_maps $mydestination $mynetworks $recipient_bcc_maps $recipient_canonical_maps $relay_domains $relay_recipient_maps $relocated_maps $sender_bcc_maps $sender_canonical_maps $smtp_generic_maps $smtpd_sender_login_maps $transport_maps $virtual_alias_domains $virtual_alias_maps $virtual_mailbox_domains $virtual_mailbox_maps $smtpd_sender_restrictions
queue_directory = /var/spool/postfix
queue_run_delay = 300s
readme_directory = /usr/share/doc/postfix-2.5.9/README_FILES
recipient_bcc_maps = proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_domain.cf, proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_user.cf
recipient_delimiter = +
relay_domains = $mydestination, proxy:mysql:/etc/postfix/mysql/relay_domains.cf
sample_directory = /usr/share/doc/postfix-2.5.9/samples
sender_bcc_maps = proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_domain.cf, proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_user.cf
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_bind_address = 66.165.162.157
smtp_data_init_timeout = 240s
smtp_data_xfer_timeout = 600s
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_enforce_tls = no
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, check_helo_access pcre:/etc/postfix/helo_access.pcre
smtpd_recipient_restrictions = check_client_access hash:/etc/postfix/pop-before-smtp, reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unlisted_recipient, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname
smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = no
smtpd_sasl_local_domain = 
smtpd_sasl_path = ./dovecot-auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated
smtpd_tls_CAfile = /etc/pki/tls/certs/iRedMail_CA.pem
smtpd_tls_cert_file = /etc/pki/tls/certs/iRedMail_CA.pem
smtpd_tls_key_file = /etc/pki/tls/private/iRedMail.key
smtpd_tls_loglevel = 0
smtpd_tls_security_level = may
tls_random_source = dev:/dev/urandom
transport_maps = proxy:mysql:/etc/postfix/mysql/transport_maps_user.cf, proxy:mysql:/etc/postfix/mysql/transport_maps_domain.cf
unknown_local_recipient_reject_code = 550
virtual_alias_domains = 
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql/virtual_alias_maps.cf, proxy:mysql:/etc/postfix/mysql/domain_alias_maps.cf, proxy:mysql:/etc/postfix/mysql/domain_alias_maps_alias.cf, proxy:mysql:/etc/postfix/mysql/catchall_maps.cf, proxy:mysql:/etc/postfix/mysql/domain_alias_catchall_maps.cf
virtual_gid_maps = static:501
virtual_mailbox_base = /mail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_maps.cf
virtual_minimum_uid = 501
virtual_transport = dovecot
virtual_uid_maps = static:501</code></pre></div>]]></content>
			<author>
				<name><![CDATA[moyorakkhi]]></name>
				<uri>http://www.iredmail.org/forum/user15834.html</uri>
			</author>
			<updated>2012-07-31T13:57:01Z</updated>
			<id>http://www.iredmail.org/forum/post17342.html#p17342</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Catchall not working with aliases]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post17320.html#p17320" />
			<content type="html"><![CDATA[<p>Please show us output of below commands to help troubleshoot. Replace &#039;abc@example.com&#039; and &#039;xyz@example.com&#039; below with real email addresses before executing.<br /></p><div class="codebox"><pre><code># cd /etc/postfix/mysql/
# for cf in $(ls *.cf); do echo ${cf}; postmap -q &#039;abc@example.com&#039; mysql:./${cf}; done
# for cf in $(ls *.cf); do echo ${cf}; postmap -q &#039;xyz@example.com&#039; mysql:./${cf}; done
# postconf -n</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2012-07-31T02:18:31Z</updated>
			<id>http://www.iredmail.org/forum/post17320.html#p17320</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Catchall not working with aliases]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post17314.html#p17314" />
			<content type="html"><![CDATA[<p>==== Provide required information ====<br />- iRedMail version and backend (LDAP/MySQL/PGSQL): 0.7.3 Mysql (pro 1.3)<br />- Linux/BSD distribution name and version: CentOS 5.6<br />- Any related log? Log is helpful for troubleshooting.<br />==== </p><p>Hello,</p><p>We are having trouble with catchall feature. Any aliases that were in place would get sent to the catchall. For instance, xyz@example.com is an alias of abc@example.com. When we put the catchall in place if we sent to abc@example.com it went through fine but if we sent to xyz@example.com it was sent to the catchall@example.com.</p><p>Thanks in advance.</p>]]></content>
			<author>
				<name><![CDATA[moyorakkhi]]></name>
				<uri>http://www.iredmail.org/forum/user15834.html</uri>
			</author>
			<updated>2012-07-30T17:50:29Z</updated>
			<id>http://www.iredmail.org/forum/post17314.html#p17314</id>
		</entry>
</feed>
