mail loops back to myself

Alain Spineux aspineux at gmail.com
Tue Jul 10 13:26:51 CEST 2007


On 7/10/07, Mr. Surachai Sriaram <ninetea at hotmail.com> wrote:
> hi all
> on your answer,
> ##
> Did you try getting postfix/kolab to generate the binary database config
> files? Usually postfix requires you to do so.
> ##
> how can i getting postfix/kolab to generate the binary database config files
> ? use "kolab_bootstrap -b" command ?

# postmap /etc/postfix/virtual
will convert the virtual "text" file into the binary one name virtual.db

>
> thank a lot for your answer and chek my main.cf file , if this file it done,
> i check another configuration file (kolab-ldapdistlist.cf ,
> kolab-ldapvirtual.cf, kolab-ldaptransport.cf) i use this command to check
> it.
> first file configutation i check kolab-ldaptransport.cf
> #####
> # postmap -q knhosp.go.th ldap:/etc/postfix/kolab-ldaptransport.cf
> #####

The interesting value is not the log but the value  returned by the command !

> this is out put of this command (use "tail -f /var/log/syslog" command and
> knhosp.go.th is my domain)
> #########
> Jul 10 10:02:48 knhosp slapd[2585]: conn=277 fd=15 ACCEPT from
> IP=127.0.0.1:44129 (IP=0.0.0.0:389)
> Jul 10 10:02:48 knhosp slapd[2585]: conn=277 op=0 BIND
> dn="cn=nobody,cn=internal,dc=knhosp,dc=go,dc=th" method=128
> Jul 10 10:02:48 knhosp slapd[2585]: conn=277 op=0 BIND
> dn="cn=nobody,cn=internal,dc=knhosp,dc=go,dc=th" mech=SIMPLE ssf=0
> Jul 10 10:02:48 knhosp slapd[2585]: conn=277 op=0 RESULT tag=97 err=0 text=
> Jul 10 10:02:48 knhosp slapd[2585]: conn=277 op=1 SRCH
> base="dc=knhosp,dc=go,dc=th" scope=2 deref=0
> filter="(&(mail=knhosp.go.th)(objectClass=kolabInetOrgPerson)(!(kolabHomeServer=$myhostname)))"
> Jul 10 10:02:48 knhosp slapd[2585]: conn=277 op=1 SRCH attr=kolabHomeServer
> Jul 10 10:02:48 knhosp slapd[2585]: conn=277 op=1 SEARCH RESULT tag=101
> err=0 nentries=0 text=

nentries=0 there was nothing

> Jul 10 10:02:48 knhosp slapd[2585]: conn=277 op=2 UNBIND
> Jul 10 10:02:48 knhosp slapd[2585]: conn=277 fd=15 closed
> ########
> and check second file configuration kolab-ldapvirtual.cf
> ####
> #postmap -q knhosp.go.th ldap:/etc/postfix/kolab-ldapvirtual.cf
> ####

using the domain name is useless, use the full address name

> and this output
> ###########
> Jul 10 10:06:48 knhosp slapd[2585]: conn=278 fd=15 ACCEPT from
> IP=127.0.0.1:60382 (IP=0.0.0.0:389)
> Jul 10 10:06:48 knhosp slapd[2585]: conn=278 op=0 BIND
> dn="cn=nobody,cn=internal,dc=knhosp,dc=go,dc=th" method=128
> Jul 10 10:06:48 knhosp slapd[2585]: conn=278 op=0 BIND
> dn="cn=nobody,cn=internal,dc=knhosp,dc=go,dc=th" mech=SIMPLE ssf=0
> Jul 10 10:06:48 knhosp slapd[2585]: conn=278 op=1 SRCH
> base="dc=knhosp,dc=go,dc=th" scope=2 deref=0
> filter="(&(!(kolabDeleteflag=*))(|(alias=knhosp.go.th)(mail=knhosp.go.th)))"
> Jul 10 10:06:48 knhosp slapd[2585]: conn=278 op=1 SRCH attr=mail
> Jul 10 10:06:48 knhosp slapd[2585]: conn=278 op=1 SEARCH RESULT tag=101
> err=0 nentries=0 text=

nentries=0 nothing too

> Jul 10 10:06:48 knhosp slapd[2585]: conn=278 op=0 RESULT tag=97 err=0 text=
> Jul 10 10:06:48 knhosp slapd[2585]: conn=278 op=2 UNBIND
> Jul 10 10:06:48 knhosp slapd[2585]: conn=278 fd=15 closed
> #############
> and last configuration file i check kolab-ldapdistlist.cf
> ######
> #postmap -q knhosp.go.th ldap:/etc/postfix/kolab-ldapdistlist.cf
> ######
> but it not have any output (check by "tail -f /var/log/syslog" and "tail -f
> /var/log/mail.log" command) this is configuration of this file
> ################
> # LDAP distribution list support
> server_host = ldap://127.0.0.1:389
> search_base = dc=knhosp,dc=go,dc=th
> domain = $mydestination
> query_filter =
> (&(objectClass=kolabGroupOfNames)(!(kolabDeleteFlag=*))(mail=%s))special_result_attribute
> = member
> exclude_internal = yes
> result_attribute = mail
> result_filter = %s
> search_timeout = 15
> scope = sub
> bind = yes
> bind_dn = cn=nobody,cn=internal,dc=knhosp,dc=go,dc=th
> bind_pw = Password
> version = 3
> ######
> when i change this config file on "domain = $mydestination" to "domain =
> knhosp.go.th" it same last output of this check file, but when i change this
> config file to mark "domain" section
> ###########
> # LDAP distribution list support
> server_host = ldap://127.0.0.1:389
> search_base = dc=knhosp,dc=go,dc=th
> #domain = $mydestination
> query_filter =
> (&(objectClass=kolabGroupOfNames)(!(kolabDeleteFlag=*))(mail=%s))special_result_attribute
> = member
> exclude_internal = yes
> result_attribute = mail
> result_filter = %s
> search_timeout = 15
> scope = sub
> bind = yes
> bind_dn = cn=nobody,cn=internal,dc=knhosp,dc=go,dc=th
> bind_pw = Password
> version = 3
> ###########
> and use same last check command of this file this is output of it
> ###############
> Jul 10 10:18:42 knhosp slapd[2585]: conn=279 fd=15 ACCEPT from
> IP=127.0.0.1:60633 (IP=0.0.0.0:389)
> Jul 10 10:18:42 knhosp slapd[2585]: conn=279 op=0 BIND
> dn="cn=nobody,cn=internal,dc=knhosp,dc=go,dc=th" method=128
> Jul 10 10:18:42 knhosp slapd[2585]: conn=279 op=0 BIND
> dn="cn=nobody,cn=internal,dc=knhosp,dc=go,dc=th" mech=SIMPLE ssf=0
> Jul 10 10:18:42 knhosp slapd[2585]: conn=279 op=0 RESULT tag=97 err=0 text=
> Jul 10 10:18:42 knhosp slapd[2585]: conn=279 op=1 SRCH
> base="dc=knhosp,dc=go,dc=th" scope=2 deref=0
> filter="(&(objectClass=kolabGroupOfNames)(!(kolabDeleteflag=*))(mail=knhosp.go.th))"
> Jul 10 10:18:42 knhosp slapd[2585]: conn=279 op=1 SRCH attr=mail member
> Jul 10 10:18:42 knhosp slapd[2585]: conn=279 op=1 SEARCH RESULT tag=101
> err=0 nentries=0 text=
> Jul 10 10:18:42 knhosp slapd[2585]: conn=279 op=2 UNBIND
> Jul 10 10:18:42 knhosp slapd[2585]: conn=279 fd=15 closed
> #########
> but when i test send mail to my account and another account i was orror this
> is error messages (old error)
> ##########
> Jul 10 10:20:41 knhosp postfix/smtp[15743]: F0541203412:
> to=<ninetea at knhosp.go.th>, orig_to=<root at knhosp.go.th>, relay=none,
> delay=0.04, delays=0.04/0/0/0, dsn=5.4.6, status=bounced (mail for
> mail.knhosp.go.th loops back to myself)
> Jul 10 10:20:41 knhosp postfix/qmgr[15595]: F0541203412: removed
> Jul 10 10:20:51 knhosp slapd[2585]: conn=281 fd=22 closed (idletimeout)
> #########
>
> how can i fix this error please resolv me.
> thank for Advance .

Witch version of kolab are u using ? 2.0 or 2.1 ?
Witch packages ? openpkg, debian, gentoo ?
On wich platform ? debian, redhat ... ?

>
> _________________________________________________________________
> http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_2G_0507
>
> _______________________________________________
> Kolab-users mailing list
> Kolab-users at kolab.org
> https://kolab.org/mailman/listinfo/kolab-users
>


-- 
--
Alain Spineux
aspineux gmail com
May the sources be with you




More information about the users mailing list