1

Topic: AMAViS LDAP ERR

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
============ Required information ====
- iRedMail version: 2.11.0 (postconf -n mail_version)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: Ubuntu 14.04
- Related log if you're reporting an issue: please to find the log bellow
====

Hello

i don't know why i get this amavis error while trying to send an email to my personnal adress in (HOTMAIL)

9:07:26 smail amavis[2199]: (02199-01) (!!)TROUBLE in process_request: connect_to_ldap: bind failed at (eval 139) line 147, <DATA> line 751.


Jan  7 09:15:03 smail postfix/qmgr[2478]: 30FBF102820: from=<izakaria@domain.net>, size=801, nrcpt=1 (queue active)
Jan  7 09:15:03 smail postfix/qmgr[2478]: 8B0F01027CF: from=<izakaria@domain.net>, size=529, nrcpt=1 (queue active)
Jan  7 09:15:03 smail amavis[8195]: (08195-01) (!)connect_to_ldap: bind failed: LDAP_INVALID_CREDENTIALS
Jan  7 09:15:03 smail amavis[8195]: (08195-01) (!!)TROUBLE in process_request: connect_to_ldap: bind failed at (eval 139) line 147, <DATA> line 751.
Jan  7 09:15:03 smail amavis[8195]: (08195-01) (!)Requesting process rundown after fatal error
Jan  7 09:15:03 smail amavis[8407]: (08407-01) (!)connect_to_ldap: bind failed: LDAP_INVALID_CREDENTIALS
Jan  7 09:15:03 smail amavis[8407]: (08407-01) (!!)TROUBLE in process_request: connect_to_ldap: bind failed at (eval 139) line 147, <DATA> line 751.
Jan  7 09:15:03 smail amavis[8407]: (08407-01) (!)Requesting process rundown after fatal error
Jan  7 09:15:03 smail postfix/smtp[9209]: 30FBF102820: to=<i.zakaria@hotmail.fr>, relay=127.0.0.1[127.0.0.1]:10024, delay=458, delays=458/0.02/0.03/0.04, dsn=4.3.2, status=deferred (host 127.0.0.1[127.0.0.1] said: 421 4.3.2 Service shutting down, closing channel (in reply to MAIL FROM command))
Jan  7 09:15:03 smail postfix/smtp[9212]: 8B0F01027CF: to=<i.zakaria@hotmail.fr>, relay=127.0.0.1[127.0.0.1]:10024, delay=2204, delays=2204/0.06/0.02/0.04, dsn=4.3.2, status=deferred (host 127.0.0.1[127.0.0.1] said: 421 4.3.2 Service shutting down, closing channel (in reply to MAIL FROM command))



root@smail:~# amavisd reload
amavisd : commande introuvable

amavis 50 user conf (ldap commented )

# ------------ End Disclaimer Setting ---------------
# Integrate Amavisd-new with OpenLDAP.
#$enable_ldap    = 0;    # 1 -> enable, 0 -> disable.
#$default_ldap   = {
#    hostname        => "SERVEURAD.domain.net",
  #  port            => 389,
  #  version         => 3,
  #  tls             => 0,
  #  inet6           => 0,
  #  timeout         => 120,
  #  base            => "OU=usrs,DC=domain,DC=net",
  #  scope           => "sub",
  #  query_filter    => "(&(objectClass=mailUser)(objectClass=amavisAccount)(accountStatus=active)(|(mail=%m)(shadowAddress=%m)))",
  #  bind_dn         => "vmail",
#   bind_password   => "password",
#};

THANKS FOR HELP

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: AMAViS LDAP ERR

i.zakaria wrote:

LDAP_INVALID_CREDENTIALS

LDAP error message 'INVALID_CREDENTIALS' means either bind dn or password is wrong.

3

Re: AMAViS LDAP ERR

i'am using the correct ones in ldap amavis bu i ve diseabled it now ?

are you talking about amavis ldap bind conf ??

because i am using the same as postfix dovecot ones and htey are woring .


Regards

4

Re: AMAViS LDAP ERR

and in query filter i  see amavis account , i don't have amavis account in AD !

5

Re: AMAViS LDAP ERR

Did you try restart Amavisd service instead? not "reload".

6

Re: AMAViS LDAP ERR

it  can"t find a task  amavis or Amavisd

7

Re: AMAViS LDAP ERR

Excuse me, what do you mean "task"?

8

Re: AMAViS LDAP ERR

root@smail:~# amavisd reload
amavisd : commande introuvable


it means amavisd  does not exist  !

9

Re: AMAViS LDAP ERR

On Debian/Ubuntu, the service name is 'amavis'. try:

# service amavis restart

10

Re: AMAViS LDAP ERR

非常感謝  ^_^

11

Re: AMAViS LDAP ERR

Surprise. smile