<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Arial Black";
panose-1:2 11 10 4 2 1 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:612.0pt 792.0pt;
margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=PT-BR link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span lang=EN-US>Hi Folks,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>I setted up a mail server based on this
how-to <a href="http://wanderingbarque.com/howtos/mailserver/mailserver.html">http://wanderingbarque.com/howtos/mailserver/mailserver.html</a><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>All things are working thing as you can see
in my server log. Off course, that I’ve suppressed some informations.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>postfix/smtpd[16483]: connect from unknown[myip]<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>postfix/smtpd[16483]: 62C9034002:
client=unknown[myip]<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>postfix/cleanup[16777]: 62C9034002:
message-id=<20070215182523.62C9034002@mysmtpserver><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>postfix/qmgr[16457]: 62C9034002: from=<me@domain>,
size=360, nrcpt=1 (queue active)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>dovecot: auth(default_with_listener):
master in: USER 1 user@domain service=deliver<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>dovecot: auth(default_with_listener): ldap(user@domain):
user search: base=dc=example,dc=com scope=subtree filter=(&(objectClass=VirtualMailAccount)(mail=user@domain)(accountActive=TRUE)(delete=FALSE))
fields=mail,homeDirectory<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>dovecot: auth(default_with_listener):
master out: USER 1 user@domain uid=202 gid=202<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>deliver(user@domain):
msgid=<20070215182523.62C9034002@mysmtpserver>: saved mail to INBOX<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>postfix/pipe[16785]: 62C9034002: to=<user@domain>,
relay=dovecot, delay=12, status=sent (domain)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>postfix/qmgr[16457]: 62C9034002: removed<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>This log is showing that a message was
delivered to an user at my mailserver. But, at this time, I’ve tried to
test forwarding features of postfix+dovecot+ldap.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>I’ve setted up this user entry (forwardActive=TRUE)
in my ldap server.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Here follows some entries that I put at my
main.cf<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US># Accounts<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>accounts_server_host = $ldap_server_host<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>accounts_search_base = $ldap_search_base<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>accounts_query_filter =
(&(&(objectClass=VirtualMailAccount)(mail=%s))(forwardActive=FALSE)(accountActive=TRUE)(delete=FALSE))<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>accounts_result_attribute = mailbox<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>accounts_cache = no<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>virtual_transport = dovecot<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>virtual_mailbox_base =
/var/lib/imap/vmail/domains<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>virtual_mailbox_maps = ldap:accounts<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>virtual_mailbox_domains = ldap:domains<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>virtual_minimum_uid = 202<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>virtual_uid_maps = static:202<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>virtual_gid_maps = static:202<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>virtual_alias_maps = ldap:aliases,
ldap:virtualforward<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>home_mailbox = Maildir/<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US># aliases<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>aliases_server_host = $ldap_server_host<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>aliases_search_base = $ldap_search_base<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>aliases_query_filter =
(&(&(objectClass=VirtualMailAlias)(mail=%s))(forwardActive=FALSE)(accountActive=TRUE)(delete=FALSE))<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>aliases_result_attribute = maildrop<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>aliases_cache = no<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>aliases_bind_dn = $ldap_bind_dn<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>aliases_bind_pw = $ldap_bind_pw<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>accountsmap_server_host = $ldap_server_host<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>accountsmap_search_base = $ldap_search_base<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>accountsmap_query_filter =
(&(&(objectClass=VirtualMailAccount)(mail=%s))(forwardActive=FALSE)(accountActive=TRUE)(delete=FALSE))<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>accountsmap_result_attribute = mail<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>accountsmap_cache = no<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US># Domains<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>domains_server_host = $ldap_server_host<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>domains_search_base = $ldap_search_base<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>domains_query_filter =
(&(objectClass=VirtualDomain)(vd=%s)(accountActive=TRUE)(delete=FALSE))<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>domains_result_attribute = vd<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>domains_bind = no<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>domains_scope = one<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US># VirtualForward<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>virtualforward_server_host =
$ldap_server_host<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>virtualforward_search_base =
$ldap_search_base<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>virtualforward_query_filter =
(&(&(objectClass=VirtualMailAccount)(mail=%s))(forwardActive=TRUE)(accountActive=TRUE)(delete=FALSE))<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>virtualforward_result_attribute = maildrop<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>virtualforward_cache = no<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>virtualforward_bind_dn = $ldap_bind_dn<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>virtualforward_bind_pw = $ldap_bind_pw<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Any guesses or misconfiguration?<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>I don’t have an idea of how can I
debug to get the error.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Looking forward to get some clues and helps
:P<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Best Regards<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-family:"Arial Black","sans-serif";color:navy'>Venilton
C. Junior<br>
<br>
</span><o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>