Current time: 12-27-2024, 04:22 PM Hello There, Guest! (LoginRegister)


Post Reply 
[SOLVED] Problems with smtp
Author Message
sfera Offline
Junior Member
*

Posts: 129
Joined: Oct 2008
Reputation: 0
Post: #1
[SOLVED] Problems with smtp
Hi, when my users try send a mail with smtp service never accept the password mine neither.

mail.warn log
Code:
Jul 14 10:30:37 www postfix/sendmail[12672]: warning: command "/usr/sbin/postdrop -r" exited with status 9
Jul 14 10:30:37 www postfix/sendmail[12370]: warning: command "/usr/sbin/postdrop -r" exited with status 9
Jul 14 10:30:37 www postfix/sendmail[12672]: fatal: webmaster@sectahentai.org(2045): unable to execute /usr/sbin/postdrop -r: Connection refused
Jul 14 10:30:37 www postfix/sendmail[12673]: warning: command "/usr/sbin/postdrop -r" exited with status 9
Jul 14 10:30:37 www postfix/sendmail[12673]: fatal: webmaster@sectahentai.org(2045): unable to execute /usr/sbin/postdrop -r: Connection refused
Jul 14 10:30:37 www postfix/sendmail[13787]: warning: command "/usr/sbin/postdrop -r" exited with status 9
Jul 14 10:30:37 www postfix/sendmail[13787]: fatal: webmaster@tekeremata.com(2060): unable to execute /usr/sbin/postdrop -r: Success
Jul 14 10:30:37 www postfix/sendmail[12678]: warning: command "/usr/sbin/postdrop -r" exited with status 9
Jul 14 10:30:37 www postfix/sendmail[12678]: fatal: webmaster@sectahentai.org(2045): unable to execute /usr/sbin/postdrop -r: Connection refused
Jul 14 10:30:37 www postfix/sendmail[12370]: fatal: webmaster@sectahentai.org(2045): unable to execute /usr/sbin/postdrop -r: Connection refused
Jul 14 10:30:37 www postfix/sendmail[8401]: warning: command "/usr/sbin/postdrop -r" exited with status 9
Jul 14 10:30:37 www postfix/sendmail[27402]: warning: command "/usr/sbin/postdrop -r" exited with status 9
Jul 14 10:30:37 www postfix/sendmail[8401]: fatal: webmaster@sectahentai.org(2045): unable to execute /usr/sbin/postdrop -r: Connection refused

mail.log log
Code:
Jul 14 10:46:48 www postfix/postdrop[15387]: warning: mail_queue_enter: create file maildrop/187108.15387: Permission denied
Jul 14 10:46:48 www postfix/postdrop[15386]: warning: mail_queue_enter: create file maildrop/233041.15386: Permission denied
Jul 14 10:46:48 www postfix/postdrop[15378]: warning: mail_queue_enter: create file maildrop/233229.15378: Permission denied
Jul 14 10:46:48 www postfix/postdrop[15376]: warning: mail_queue_enter: create file maildrop/233256.15376: Permission denied
Jul 14 10:46:48 www postfix/postdrop[15384]: warning: mail_queue_enter: create file maildrop/233442.15384: Permission denied
Jul 14 10:46:48 www postfix/postdrop[15385]: warning: mail_queue_enter: create file maildrop/233938.15385: Permission denied
Jul 14 10:46:48 www postfix/postdrop[15383]: warning: mail_queue_enter: create file maildrop/233978.15383: Permission denied

#postfix set-permissions
Code:
chown: cannot access `/usr/lib/postfix/dict_cdb.so': No such file or directory

#ls -l /usr/lib/postfix/dict_tcp.so
Code:
-rwxr-xr-x 1 root root 9420 sep 14  2008 /usr/lib/postfix/dict_tcp.so

#ls -l /var/lib/postfix/smtp_scache.db
Code:
ls: cannot access `/var/lib/postfix/smtp_scache.db': No such file or directory

I try to find the file in my server and in virtual machine with a fresh isp-cp installation but I don't find it.

Now I'm lost. I use google for search help, but all solutions I find don't work.

Thx in advanced
(This post was last modified: 07-16-2010 07:05 AM by sfera.)
07-14-2010 06:53 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #2
RE: Problems with smtp
apt-get install --reinstall postfix
07-14-2010 08:17 PM
Visit this user's website Find all posts by this user Quote this message in a reply
sfera Offline
Junior Member
*

Posts: 129
Joined: Oct 2008
Reputation: 0
Post: #3
RE: Problems with smtp
Hi Kilburn. Thx for your help but I have same errors in mail.warn after reintall with apt-get

Code:
~# tail -f /var/log/mail.warn
Jul 14 12:29:29 www postfix/postdrop[15374]: warning: mail_queue_enter: create file maildrop/911137.15374: Permission denied
Jul 14 12:29:29 www postfix/postdrop[15382]: warning: mail_queue_enter: create file maildrop/911374.15382: Permission denied
Jul 14 12:29:29 www postfix/postdrop[15364]: warning: mail_queue_enter: create file maildrop/918102.15364: Permission denied
Jul 14 12:29:29 www postfix/postdrop[15383]: warning: mail_queue_enter: create file maildrop/918475.15383: Permission denied
Jul 14 12:29:29 www postfix/postdrop[15376]: warning: mail_queue_enter: create file maildrop/926997.15376: Permission denied

Code:
www:~# postfix set-permissions
chown: cannot access `/usr/lib/postfix/dict_cdb.so': No such file or directory
Code:
ls -l /usr/lib/postfix/dict_cdb.so
ls: no se puede acceder a /usr/lib/postfix/dict_cdb.so: No existe el fichero o el directorio
07-14-2010 08:35 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #4
RE: Problems with smtp
apt-get install --reinstall postfix-cdb

... and try the postfix permissions again. I think you're missing one package that you had previously installed and that's why the perms script is complaining and failing before correctly setting all permissions.
07-14-2010 08:44 PM
Visit this user's website Find all posts by this user Quote this message in a reply
sfera Offline
Junior Member
*

Posts: 129
Joined: Oct 2008
Reputation: 0
Post: #5
RE: Problems with smtp
The packet postfix-cdb was not installed in the server, when i put your command it was installed.

But when I set the permissions I get same error.

Code:
www:~# postfix set-permissions
chown: cannot access `/usr/lib/postfix/dict_ldap.so': No such file or directory

And in mail.warn I get the same error too.
Code:
www:~# tail -100 /var/log/mail.warn
Jul 14 13:24:20 www postfix/postdrop[15386]: warning: mail_queue_enter: create file maildrop/308571.15386: Permission denied
Jul 14 13:24:20 www postfix/postdrop[15364]: warning: mail_queue_enter: create file maildrop/308845.15364: Permission denied
Jul 14 13:24:20 www postfix/postdrop[15376]: warning: mail_queue_enter: create file maildrop/309093.15376: Permission denied
Jul 14 13:24:20 www postfix/postdrop[15382]: warning: mail_queue_enter: create file maildrop/309308.15382: Permission denied
Jul 14 13:24:20 www postfix/postdrop[15383]: warning: mail_queue_enter: create file maildrop/309526.15383: Permission denied
Jul 14 13:24:20 www postfix/postdrop[15378]: warning: mail_queue_enter: create file maildrop/561229.15378: Permission denied

I try send a mail and get same error.

Sad
07-14-2010 09:43 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #6
RE: Problems with smtp
Quote:chown: cannot access `/usr/lib/postfix/dict_ldap.so': No such file or directory

You should see the pattern here. For some reason your postfix thinks that it has all the optional map types installed but, as you don't, it's unable to find them. Therefore, what I would do is simply install them all and try again:
Code:
apt-get install --reinstall postfix-ldap postfix-mysql postfix-pcre postfix-pgsql
07-14-2010 10:24 PM
Visit this user's website Find all posts by this user Quote this message in a reply
sfera Offline
Junior Member
*

Posts: 129
Joined: Oct 2008
Reputation: 0
Post: #7
RE: Problems with smtp
Ok Kilburn. I try it.

Code:
www:~# apt-get install --reinstall postfix-ldap postfix-mysql postfix-pcre postf                                                                                        ix-pgsql
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Se instalarán los siguientes paquetes NUEVOS:
  postfix-ldap postfix-mysql postfix-pcre postfix-pgsql
0 actualizados, 4 se instalarán, 0 para eliminar y 0 no actualizados.
Necesito descargar 179kB de archivos.
Se utilizarán 324kB de espacio de disco adicional después de esta operación.
Des:1 http://ftp.es.debian.org lenny/main postfix-ldap 2.5.5-1.1 [48,6kB]
Des:2 http://ftp.es.debian.org lenny/main postfix-mysql 2.5.5-1.1 [43,4kB]
Des:3 http://ftp.es.debian.org lenny/main postfix-pcre 2.5.5-1.1 [43,4kB]
Des:4 http://ftp.es.debian.org lenny/main postfix-pgsql 2.5.5-1.1 [43,5kB]
Descargados 179kB en 2s (69,9kB/s)
Seleccionando el paquete postfix-ldap previamente no seleccionado.
(Leyendo la base de datos ...
39367 ficheros y directorios instalados actualmente.)
Desempaquetando postfix-ldap (de .../postfix-ldap_2.5.5-1.1_i386.deb) ...
Seleccionando el paquete postfix-mysql previamente no seleccionado.
Desempaquetando postfix-mysql (de .../postfix-mysql_2.5.5-1.1_i386.deb) ...
Seleccionando el paquete postfix-pcre previamente no seleccionado.
Desempaquetando postfix-pcre (de .../postfix-pcre_2.5.5-1.1_i386.deb) ...
Seleccionando el paquete postfix-pgsql previamente no seleccionado.
Desempaquetando postfix-pgsql (de .../postfix-pgsql_2.5.5-1.1_i386.deb) ...
Configurando postfix-ldap (2.5.5-1.1) ...
Adding ldap map entry to /etc/postfix/dynamicmaps.cf
Configurando postfix-mysql (2.5.5-1.1) ...
Adding mysql map entry to /etc/postfix/dynamicmaps.cf
Configurando postfix-pcre (2.5.5-1.1) ...
Adding pcre map entry to /etc/postfix/dynamicmaps.cf
Configurando postfix-pgsql (2.5.5-1.1) ...
Adding pgsql map entry to /etc/postfix/dynamicmaps.cf

I get the same error. Sad

Code:
www:~# ls -l /usr/lib/postfix/dict_sdbm.so
ls: no se puede acceder a /usr/lib/postfix/dict_sdbm.so: No existe el fichero o el directorio

It'r is funny becouse if I do #postfix check I don't get any error.

Now i get other error in /var/log/mail.warn
Code:
www:~# tail /var/log/mail.warn
Jul 14 20:14:52 www postfix/smtpd[27416]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory
Jul 14 20:14:52 www postfix/smtpd[27416]: warning: SASL authentication failure: Password verification failed
Jul 14 20:14:52 www postfix/smtpd[27416]: warning: unknown[77.224.170.133]: SASL PLAIN authentication failed: authentication failure
Jul 14 20:14:52 www postfix/smtpd[27416]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory
Jul 14 20:14:52 www postfix/smtpd[27416]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory
Jul 14 20:14:52 www postfix/smtpd[27416]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory
Jul 14 20:14:52 www postfix/smtpd[27416]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory
Jul 14 20:14:52 www postfix/smtpd[27416]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory
Jul 14 20:14:52 www postfix/smtpd[27416]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory
Jul 14 20:14:52 www postfix/smtpd[27416]: warning: unknown[77.224.170.133]: SASL LOGIN authentication failed: authentication failure

Thx in advanced.
07-15-2010 04:16 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #8
RE: Problems with smtp
First of all, comment the line corresponding to "sdbm_dict.so" in /etc/postfix/postfix-files and try to set the permissions again. If you get another "missing file" message for another file, comment it in "postfix-files" too and repeat.

Next, it looks like you also have wrong permissions for the extra files that allow postfix to run chrootet. They are inside /var/spool/postfix, sub-folders var, lib and usr. Assuming that hey exist, I would fix them by:
Code:
cd /var/spool/postfix
find usr lib etc -type f | xargs chown root:root
find usr lib etc -type f | xargs chmod 644
find usr lib etc -type d | xargs chown root:root
find usr lib etc -type d | xargs chmod 755
07-15-2010 10:54 AM
Visit this user's website Find all posts by this user Quote this message in a reply
sfera Offline
Junior Member
*

Posts: 129
Joined: Oct 2008
Reputation: 0
Post: #9
RE: Problems with smtp
I need more files..

When I comment the line os the sdbm.dict.so I get other error... I try create the files with touch but I stop of create files beacouse I think that's is necessary for the SMTP server... I post all i make (and later I remove the files I created)

Code:
www:~# vi /etc/postfix/postfix-files
www:~# /etc/init.d/postfix stop
Stopping Postfix Mail Transport Agent: postfix.
www:~# postfix set-permissions
chown: cannot access `/etc/postfix/LICENSE': No such file or directory
www:~# touch /etc/postfix/LICENSE
www:~# postfix set-permissions
chown: cannot access `/etc/postfix/TLS_LICENSE': No such file or directory
www:~# touch /etc/postfix/TLS_LICENSE
www:~# postfix set-permissions
chown: cannot access `/etc/postfix/access': No such file or directory
www:~# ls /etc/postfix/
dynamicmaps.cf                         master.cf                              policyd_weight_recipient_whitelist.db  sasl/
ispcp/                                 policyd_weight_client_whitelist        postfix-files                          TLS_LICENSE
LICENSE                                policyd_weight_client_whitelist.db     postfix-script
main.cf                                policyd_weight_recipient_whitelist     post-install
www:~# touch /etc/postfix/access
www:~# postfix set-permissions
chown: cannot access `/etc/postfix/aliases': No such file or directory
www:~# touch /etc/postfix/aliases
www:~# postfix set-permissions
chown: cannot access `/etc/postfix/bounce.cf.default': No such file or directory
www:~# touch /etc/postfix/bounce.cf.default
www:~# postfix set-permissions
chown: cannot access `/etc/postfix/canonical': No such file or directory

With xargs i dont have any problem.

I try send new mail using smtp and I have the same error, and don't validate my password (when it's correct)

Best regarts
07-15-2010 09:53 PM
Find all posts by this user Quote this message in a reply
sfera Offline
Junior Member
*

Posts: 129
Joined: Oct 2008
Reputation: 0
Post: #10
RE: Problems with smtp
any other idea??.. I have webs with out smtp, for now they are use webmail..

Thx in advanced.
07-16-2010 04:35 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)