<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — Ldap Alias Domains]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic4276.xml" />
	<updated>2012-12-12T12:07:46Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic4276-ldap-alias-domains.html</id>
		<entry>
			<title type="html"><![CDATA[Re: Ldap Alias Domains]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post19524.html#p19524" />
			<content type="html"><![CDATA[<p>Dear meld0,</p><p>We don&#039;t support manual mail server installation, because we don&#039;t know your system environment. Please either try iRedMail directly, or try to solve them yourself.</p><p>Also, all sample Postfix LDAP query files are available below, it&#039;s better to use it directly if you use &quot;iredmail.schema&quot;:<br /><a href="https://bitbucket.org/zhb/iredmail/src/default/iRedMail/samples/postfix?at=default">https://bitbucket.org/zhb/iredmail/src/ … at=default</a></p><p>Here&#039;s shell script used to configure Postfix parameters (and other stuffs):<br /><a href="https://bitbucket.org/zhb/iredmail/src/default/iRedMail/functions/postfix.sh">https://bitbucket.org/zhb/iredmail/src/ … postfix.sh</a></p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2012-12-12T12:07:46Z</updated>
			<id>http://www.iredmail.org/forum/post19524.html#p19524</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Ldap Alias Domains]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post19509.html#p19509" />
			<content type="html"><![CDATA[<p>==== ==== Required information ====<br />- iRedMail version: none<br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP<br />- Linux/BSD distribution name and version: Ubuntu 12.04.1<br />- Related log if you&#039;re reporting an issue: <br />==== </p><br /><p>Hey,</p><p>i hope someone on this forum can help me with my problem. I&#039;m trying to move my current postfix+dovecot setup from mysql backend to ldap backend. Everything is done on a test system. To administer the ldap server i&#039;m currently using phpldapadmin.<br />I ported your iredmail.schema and imported it into my ldap server. Furthermore dovecot is already using the ldap backend for imap login and the dovecot lda. Postfix is also using ldap to determine where to deliver the mail. I can send mail to an account on the first domain and an alias for that account as well. Catchall is also working. The only thing i cant get to work are alias domains. When trying to send an email from telnet to the alias domain i get the following reply: </p><p>Recipient address rejected: User unknown in virtual mailbox table; from=&lt;dqdq&gt; to=&lt;test@main.epac.to&gt; proto=ESMTP helo=&lt;asd&gt;</p><p>So i guess postfix recognizes that the mail server is responsible for the alias domain, but can&#039;t find the user. Any help would be highly appriciated as i&#039;m someone who wants to know how it works and can&#039;t let it go until i got it how i want ^^.&nbsp; Here are the postfix files and the current ldif. If you need anymore information i will provide it.</p><br /><p>domains.cf</p><p>server_host&nbsp; &nbsp; &nbsp;= 127.0.0.1<br />server_port&nbsp; &nbsp; &nbsp;= 389<br />version&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 3<br />search_base&nbsp; &nbsp; &nbsp; = cn=vmail,dc=main,dc=com<br />scope&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = one<br />query_filter&nbsp; &nbsp; &nbsp;= (&amp;(objectClass=mailDomain)(|(domainName=%s)(domainAliasName=%s)))<br />result_attribute = domainName<br />debuglevel&nbsp; &nbsp; &nbsp; &nbsp;= 0</p><br /><p>mailboxes.cf </p><p>server_host&nbsp; &nbsp; &nbsp;= 127.0.0.1<br />server_port&nbsp; &nbsp; &nbsp;= 389<br />version&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 3<br />search_base&nbsp; &nbsp; &nbsp; = cn=vmail,dc=main,dc=com<br />scope&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = sub<br />query_filter&nbsp; &nbsp; &nbsp;= (&amp;(objectClass=mailUser)(|(mail=%s)(shadowAddress=%s)))<br />result_attribute = mailMessageStore<br />debuglevel&nbsp; &nbsp; &nbsp; &nbsp;= 0</p><br /><p>aliases.cf</p><p>server_host&nbsp; &nbsp; &nbsp;= 127.0.0.1<br />server_port&nbsp; &nbsp; &nbsp;= 389<br />version&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 3<br />search_base&nbsp; &nbsp; &nbsp; = cn=vmail,dc=main,dc=com<br />scope&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = sub<br />query_filter&nbsp; &nbsp; &nbsp;= (&amp;(objectClass=mailAlias)(|(mail=%s)(shadowAddress=%s)))<br />result_attribute = mailForwardingAddress<br />debuglevel&nbsp; &nbsp; &nbsp; &nbsp;= 0</p><br /><p>domain_catchall.cf</p><p>server_host&nbsp; &nbsp; &nbsp;= 127.0.0.1<br />server_port&nbsp; &nbsp; &nbsp;= 389<br />version&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 3<br />search_base&nbsp; &nbsp; &nbsp; = cn=vmail,dc=main,dc=com<br />scope&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = sub<br />query_filter&nbsp; &nbsp; &nbsp;= (&amp;(objectClass=mailAlias)(mail=@%d))<br />result_attribute = mailForwardingAddress<br />debuglevel&nbsp; &nbsp; &nbsp; &nbsp;= 0</p><br /><p>main.cf</p><p># See /usr/share/postfix/main.cf.dist for a commented, more complete version<br /># Debian specific:&nbsp; Specifying a file name will cause the first<br /># line of that file to be used as the name.&nbsp; The Debian default<br /># is /etc/mailname.<br />#myorigin = /etc/mailname</p><p>smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)<br />biff = no</p><p># appending .domain is the MUA&#039;s job.<br />append_dot_mydomain = no</p><p># Uncomment the next line to generate &quot;delayed mail&quot; warnings<br />#delay_warning_time = 4h</p><p>readme_directory = no</p><p># TLS parameters<br />smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem<br />smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key<br />smtpd_use_tls=yes<br />smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache<br />smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache</p><p># See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for<br /># information on enabling SSL in the smtp client.</p><p>myhostname = _______<br />myorigin = /etc/mailname<br />mydestination = ________<br />relayhost = <br />mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128<br />mailbox_size_limit = 0<br />recipient_delimiter = +<br />inet_interfaces = all<br />inet_protocols = all</p><p>virtual_mailbox_base = /var/vmail<br />#virtual_mailbox_limit_override = yes<br />#virtual_maildir_limit_message = Sorry, the user&#039;s maildir has overdrawn his diskspace quota, please try again later.<br />#virtual_overquota_bounce = yes<br />virtual_minimum_uid = 150<br />virtual_uid_maps = static:1003<br />virtual_gid_maps = static:1003<br />virtual_transport = dovecot<br />dovecot_destination_recipient_limit = 1<br />mailbox_command = /usr/lib/dovecot/deliver</p><p>virtual_mailbox_domains =<br />&nbsp; &nbsp; proxy:ldap:$config_directory/maps/domains.cf<br />virtual_mailbox_maps =<br />&nbsp; &nbsp; proxy:ldap:$config_directory/maps/mailboxes.cf<br />virtual_alias_maps =<br />&nbsp; &nbsp; proxy:ldap:$config_directory/maps/aliases.cf,<br />&nbsp; &nbsp; proxy:ldap:$config_directory/maps/domain_catchall.cf</p><br /><p>master.cf (dovecot only)</p><p>dovecot unix&nbsp; &nbsp; -&nbsp; &nbsp; &nbsp; &nbsp;n&nbsp; &nbsp; &nbsp; &nbsp;n&nbsp; &nbsp; &nbsp; &nbsp;-&nbsp; &nbsp; &nbsp; &nbsp;-&nbsp; &nbsp; &nbsp; pipe<br />&nbsp; &nbsp; flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${domain} -m ${extension}</p><br /><p># LDIF Export for cn=vmail,dc=main,dc=com<br /># Server: My LDAP Server (127.0.0.1)<br /># Search Scope: sub<br /># Search Filter: (objectClass=*)<br /># Total Entries: 4<br />#<br /># Generated by phpLDAPadmin (<a href="http://phpldapadmin.sourceforge.net">http://phpldapadmin.sourceforge.net</a>) on December 11, 2012 11:27 pm<br /># Version: 1.2.2</p><p>version: 1</p><p># Entry 1: cn=vmail,dc=main,dc=com<br />dn: cn=vmail,dc=main,dc=com<br />cn: vmail<br />objectclass: organizationalRole<br />objectclass: top</p><p># Entry 2: cn=main.com,cn=vmail,dc=main,dc=com<br />dn: cn=main.com,cn=vmail,dc=main,dc=com<br />cn: main.com<br />domainaliasname: main.epac.to<br />domainname: main.com<br />objectclass: mailDomain<br />objectclass: top</p><p># Entry 3: mail=@main.com,cn=main.com,cn=vmail,dc=main,dc=com<br />dn: mail=@main.com,cn=main.com,cn=vmail,dc=main,dc=com<br />mail: @main.com<br />mailforwardingaddress: test@main.com<br />objectclass: mailAlias<br />objectclass: top</p><p># Entry 4: uid=test,cn=main.com,cn=vmail,dc=main,dc=com<br />dn: uid=test,cn=main.com,cn=vmail,dc=main,dc=com<br />cn: test<br />gidnumber: 1003<br />homedirectory: /var/vmail/main.com/test@main.com<br />mail: test@main.com<br />mailmessagestore: main.com/test@main.com<br />objectclass: account<br />objectclass: top<br />objectclass: mailUser<br />objectclass: posixAccount<br />shadowaddress: test2@main.com<br />uid: test<br />uidnumber: 1003<br />userpassword: {SHA}----</p>]]></content>
			<author>
				<name><![CDATA[meld0]]></name>
				<uri>http://www.iredmail.org/forum/user32359.html</uri>
			</author>
			<updated>2012-12-11T23:36:36Z</updated>
			<id>http://www.iredmail.org/forum/post19509.html#p19509</id>
		</entry>
</feed>
