HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   dovecot problem (http://www.howtoforge.com/forums/showthread.php?t=19701)

sojic 22nd January 2008 15:44

dovecot problem
 
I install ispconfig on Cents 5.0 (perfect installation). Mail do not work.

I can send mail (via pop3 client) but I can not check mail. The client can not connect to the server.

Here is part of /var/log/maillog

Code:

[root@localhost log]# tail -20 maillog
Jan 22 15:34:13 localhost last message repeated 2 times
Jan 22 15:34:13 localhost dovecot: pop3-login: pop3-login: error while loading shared libraries: libsepol.so.1: failed to map segment from shared object: Cannot allocate memory
Jan 22 15:34:13 localhost last message repeated 2 times
Jan 22 15:34:13 localhost dovecot: child 7398 (login) returned error 127
Jan 22 15:34:13 localhost dovecot: child 7399 (login) returned error 127
Jan 22 15:34:13 localhost dovecot: child 7400 (login) returned error 127
Jan 22 15:34:13 localhost dovecot: child 7401 (login) returned error 127
Jan 22 15:34:13 localhost dovecot: child 7402 (login) returned error 127
Jan 22 15:34:13 localhost dovecot: child 7403 (login) returned error 127
Jan 22 15:35:13 localhost dovecot: imap-login: imap-login: error while loading shared libraries: libsepol.so.1: failed to map segment from shared object: Cannot allocate memory
Jan 22 15:35:13 localhost dovecot: imap-login: imap-login: error while loading shared libraries: libsepol.so.1: failed to map segment from shared object: Cannot allocate memory
Jan 22 15:35:13 localhost dovecot: pop3-login: pop3-login: error while loading shared libraries: libsepol.so.1: failed to map segment from shared object: Cannot allocate memory
Jan 22 15:35:13 localhost last message repeated 2 times
Jan 22 15:35:13 localhost dovecot: child 7452 (login) returned error 127
Jan 22 15:35:13 localhost dovecot: child 7453 (login) returned error 127
Jan 22 15:35:13 localhost dovecot: child 7454 (login) returned error 127
Jan 22 15:35:13 localhost dovecot: child 7455 (login) returned error 127
Jan 22 15:35:13 localhost dovecot: child 7456 (login) returned error 127
Jan 22 15:35:13 localhost dovecot: imap-login: imap-login: error while loading shared libraries: libsepol.so.1: failed to map segment from shared object: Cannot allocate memory
Jan 22 15:35:13 localhost dovecot: child 7457 (login) returned error 127
[root@localhost log]#


topdog 23rd January 2008 08:46

Thats a bug in redhat 5.x to fix it you need to do the following

In your /etc/dovecot.conf set this option
Code:

login_process_size = 64
Then restart dovecot

sojic 23rd January 2008 12:16

Thanks, it solve the problem. But...

Mail do not arive. I'm sending mail to user@domain.com I do not receive mail that mail is undeliveryble (from Mail deamon) and user do not receive mail.

Also I try to send mail from user@domain.com to user@domain.com (to myself) and I do not receive mail.

How to track errors?

topdog 23rd January 2008 12:27

Post the log let me see what the problem is

sojic 23rd January 2008 13:44

Which logfile, which part?

/var/log/maillog?

sojic 23rd January 2008 14:33

Code:

Jan 23 12:43:44 localhost dovecot: pop3-login: Login: user=<domain_kontakt>, method=PLAIN, rip=::ffff:62.162.219.66, lip=::ffff:88.85.x.y
Jan 23 12:43:44 localhost dovecot: POP3(domain_kontakt): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Jan 23 12:44:05 localhost postfix/anvil[28914]: statistics: max connection rate 1/60s for (smtp:82.114.83.94) at Jan 23 12:40:45
Jan 23 12:44:05 localhost postfix/anvil[28914]: statistics: max connection count 1 for (smtp:82.114.83.94) at Jan 23 12:40:45
Jan 23 12:44:05 localhost postfix/anvil[28914]: statistics: max cache size 1 at Jan 23 12:40:45
Jan 23 12:44:52 localhost dovecot: pop3-login: Login: user=<domain_kontakt>, method=PLAIN, rip=::ffff:62.162.219.66, lip=::ffff:88.85.x.y
Jan 23 12:44:53 localhost dovecot: POP3(domain_kontakt): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Jan 23 12:45:38 localhost dovecot: pop3-login: Disconnected: rip=::ffff:64.233.184.236, lip=::ffff:88.85.x.y
Jan 23 12:45:42 localhost dovecot: pop3-login: Disconnected: user=<sandra@domain>, method=PLAIN, rip=::ffff:64.233.184.235, lip=::ffff:88.85.x.y
Jan 23 12:53:43 localhost dovecot: pop3-login: Login: user=<domain_kontakt>, method=PLAIN, rip=::ffff:62.162.219.66, lip=::ffff:88.85.x.y
Jan 23 12:53:43 localhost dovecot: POP3(domain_kontakt): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Jan 23 13:03:43 localhost dovecot: pop3-login: Login: user=<domain_kontakt>, method=PLAIN, rip=::ffff:62.162.219.66, lip=::ffff:88.85.x.y
Jan 23 13:03:43 localhost dovecot: POP3(domain_kontakt): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Jan 23 13:12:53 localhost postfix/smtpd[30203]: warning: 122.164.168.118: hostname ABTS-TN-dynamic-118.168.164.122.airtelbroadband.in verification failed: Name or service not known
Jan 23 13:12:53 localhost postfix/smtpd[30203]: connect from unknown[122.164.168.118]
Jan 23 13:12:57 localhost postfix/smtpd[30203]: NOQUEUE: reject: RCPT from unknown[122.164.168.118]: 554 5.7.1 <kontakt@domain>: Relay access denied; from=<jrad@jradrocks.com> to=<kontakt@domain> proto=SMTP helo=<sloanled.com>
Jan 23 13:13:02 localhost postfix/smtpd[30203]: lost connection after RCPT from unknown[122.164.168.118]
Jan 23 13:13:02 localhost postfix/smtpd[30203]: disconnect from unknown[122.164.168.118]
Jan 23 13:13:43 localhost dovecot: pop3-login: Login: user=<domain_kontakt>, method=PLAIN, rip=::ffff:62.162.219.66, lip=::ffff:88.85.x.y
Jan 23 13:13:43 localhost dovecot: POP3(domain_kontakt): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Jan 23 13:16:22 localhost postfix/anvil[30205]: statistics: max connection rate 1/60s for (smtp:122.164.168.118) at Jan 23 13:12:53
Jan 23 13:16:22 localhost postfix/anvil[30205]: statistics: max connection count 1 for (smtp:122.164.168.118) at Jan 23 13:12:53
Jan 23 13:16:22 localhost postfix/anvil[30205]: statistics: max cache size 1 at Jan 23 13:12:53
Jan 23 13:23:43 localhost dovecot: pop3-login: Login: user=<domain_kontakt>, method=PLAIN, rip=::ffff:62.162.219.66, lip=::ffff:88.85.x.y
Jan 23 13:23:43 localhost dovecot: POP3(domain_kontakt): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Jan 23 13:25:53 localhost dovecot: pop3-login: Disconnected: rip=::ffff:72.14.204.226, lip=::ffff:88.85.x.y
Jan 23 13:25:56 localhost dovecot: pop3-login: Disconnected: user=<urednik@domain>, method=PLAIN, rip=::ffff:72.14.204.237, lip=::ffff:88.85.x.y
Jan 23 13:33:43 localhost dovecot: pop3-login: Login: user=<domain_kontakt>, method=PLAIN, rip=::ffff:62.162.219.66, lip=::ffff:88.85.x.y
Jan 23 13:33:43 localhost dovecot: POP3(domain_kontakt): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Jan 23 13:33:47 localhost dovecot: pop3-login: Disconnected: rip=::ffff:209.85.146.177, lip=::ffff:88.85.x.y
Jan 23 13:33:52 localhost dovecot: pop3-login: Disconnected: user=<programer@domain>, method=PLAIN, rip=::ffff:209.85.146.182, lip=::ffff:88.85.x.y
Jan 23 13:43:43 localhost dovecot: pop3-login: Login: user=<domain_kontakt>, method=PLAIN, rip=::ffff:62.162.219.66, lip=::ffff:88.85.x.y
Jan 23 13:43:43 localhost dovecot: POP3(domain_kontakt): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Jan 23 13:45:38 localhost dovecot: pop3-login: Disconnected: rip=::ffff:64.233.170.186, lip=::ffff:88.85.x.y
Jan 23 13:45:40 localhost dovecot: pop3-login: Disconnected: user=<sandra@domain>, method=PLAIN, rip=::ffff:64.233.170.187, lip=::ffff:88.85.x.y
Jan 23 13:45:43 localhost postfix/smtpd[31956]: connect from unknown[62.162.219.66]
Jan 23 13:45:43 localhost postfix/smtpd[31956]: A35E22C20018: client=unknown[62.162.219.66], sasl_method=PLAIN, sasl_username=domain_kontakt
Jan 23 13:45:43 localhost postfix/cleanup[31960]: A35E22C20018: message-id=<479736F9.7090906@domain>
Jan 23 13:45:43 localhost postfix/qmgr[4489]: A35E22C20018: from=<kontakt@domain>, size=539, nrcpt=1 (queue active)
Jan 23 13:45:43 localhost postfix/smtpd[31956]: disconnect from unknown[62.162.219.66]
Jan 23 13:45:43 localhost postfix/smtp[31961]: A35E22C20018: to=<kontakt@domain>, relay=none, delay=0.3, delays=0.06/0.01/0.23/0, dsn=5.4.6, status=bounced (mail for domain loops back to myself)
Jan 23 13:45:43 localhost postfix/cleanup[31960]: E77B02C21CC5: message-id=<20080123124543.E77B02C21CC5@localhost.localdomain>
Jan 23 13:45:43 localhost postfix/qmgr[4489]: E77B02C21CC5: from=<>, size=2401, nrcpt=1 (queue active)
Jan 23 13:45:43 localhost postfix/bounce[31962]: A35E22C20018: sender non-delivery notification: E77B02C21CC5
Jan 23 13:45:43 localhost postfix/qmgr[4489]: A35E22C20018: removed
Jan 23 13:45:43 localhost postfix/smtp[31961]: E77B02C21CC5: to=<kontakt@domain>, relay=none, delay=0.01, delays=0/0/0/0, dsn=5.4.6, status=bounced (mail for domain loops back to myself)
Jan 23 13:45:43 localhost postfix/qmgr[4489]: E77B02C21CC5: removed
Jan 23 13:46:00 localhost dovecot: pop3-login: Login: user=<domain_kontakt>, method=PLAIN, rip=::ffff:62.162.219.66, lip=::ffff:88.85.x.y
Jan 23 13:46:00 localhost dovecot: POP3(domain_kontakt): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Jan 23 13:49:03 localhost postfix/anvil[31958]: statistics: max connection rate 1/60s for (smtp:62.162.219.66) at Jan 23 13:45:43
Jan 23 13:49:03 localhost postfix/anvil[31958]: statistics: max connection count 1 for (smtp:62.162.219.66) at Jan 23 13:45:43
Jan 23 13:49:03 localhost postfix/anvil[31958]: statistics: max cache size 1 at Jan 23 13:45:43
Jan 23 13:53:43 localhost dovecot: pop3-login: Login: user=<domain_kontakt>, method=PLAIN, rip=::ffff:62.162.219.66, lip=::ffff:88.85.x.y
Jan 23 13:53:43 localhost dovecot: POP3(domain_kontakt): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Jan 23 14:03:43 localhost dovecot: pop3-login: Login: user=<domain_kontakt>, method=PLAIN, rip=::ffff:62.162.219.66, lip=::ffff:88.85.x.y
Jan 23 14:03:43 localhost dovecot: POP3(domain_kontakt): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Jan 23 14:13:43 localhost dovecot: pop3-login: Login: user=<domain_kontakt>, method=PLAIN, rip=::ffff:62.162.219.66, lip=::ffff:88.85.x.y
Jan 23 14:13:43 localhost dovecot: POP3(domain_kontakt): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Jan 23 14:20:36 localhost postfix/smtpd[1369]: connect from 81.203.115.153.dyn.user.ono.com[81.203.115.153]
Jan 23 14:20:37 localhost postfix/smtpd[1369]: NOQUEUE: reject: RCPT from 81.203.115.153.dyn.user.ono.com[81.203.115.153]: 554 5.7.1 <kontakt@domain>: Relay access denied; from=<cassatt@artmetal.com> to=<kontakt@domain> proto=SMTP helo=<vmphmjh.user.ono.com>
Jan 23 14:20:37 localhost postfix/smtpd[1369]: lost connection after RCPT from 81.203.115.153.dyn.user.ono.com[81.203.115.153]
Jan 23 14:20:37 localhost postfix/smtpd[1369]: disconnect from 81.203.115.153.dyn.user.ono.com[81.203.115.153]
Jan 23 14:23:43 localhost dovecot: pop3-login: Login: user=<domain_kontakt>, method=PLAIN, rip=::ffff:62.162.219.66, lip=::ffff:88.85.x.y
Jan 23 14:23:43 localhost dovecot: POP3(domain_kontakt): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Jan 23 14:23:57 localhost postfix/anvil[1371]: statistics: max connection rate 1/60s for (smtp:81.203.115.153) at Jan 23 14:20:36
Jan 23 14:23:57 localhost postfix/anvil[1371]: statistics: max connection count 1 for (smtp:81.203.115.153) at Jan 23 14:20:36
Jan 23 14:23:57 localhost postfix/anvil[1371]: statistics: max cache size 1 at Jan 23 14:20:36
Jan 23 14:25:53 localhost dovecot: pop3-login: Disconnected: rip=::ffff:72.14.204.237, lip=::ffff:88.85.x.y
Jan 23 14:25:58 localhost dovecot: pop3-login: Disconnected: user=<urednik@domain>, method=PLAIN, rip=::ffff:72.14.204.230, lip=::ffff:88.85.x.y
[root@localhost log]#


topdog 23rd January 2008 19:22

There is a problem with your postfix configuration the mail is looping back to itself.

Just double check your configuration if you followed a howto, if you dont come right post your postfix conf and then i can check for you.

falko 24th January 2008 14:33

Quote:

Jan 23 13:45:43 localhost postfix/smtp[31961]: E77B02C21CC5: to=<kontakt@domain>, relay=none, delay=0.01, delays=0/0/0/0, dsn=5.4.6, status=bounced (mail for domain loops back to myself)
Jan 23 13:45:43 localhost postfix/qmgr[4489]: E77B02C21CC5: removed
Please add domain to the mydestination line in /etc/postfix/main.cf and restart Postfix.

sojic 30th January 2008 14:27

1 Attachment(s)
I edit main.cf

Now, it look:
Code:

[root@localhost postfix]# vim
access            local-host-names~  postfix-files      transport
bounce.cf.default  main.cf            postfix-script    virtual
canonical          main.cf.backup    post-install      virtusertable
generic            main.cf.default    prng_exch          virtusertable~
header_checks      main.cf.orig      relocated          virtusertable.db
LICENSE            makedefs.out      ssl/
local-host-names  master.cf          TLS_LICENSE
[root@localhost postfix]# vim main.cf
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, domain.com.mk
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
debug_peer_level = 2
debugger_command =
        PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
        xxgdb $daemon_directory/$process_name $process_id & sleep 5

sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.3.3/samples
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
smtpd_sasl_local_domain =

Now, I can not send mail. I get error like on the attachment.

topdog 30th January 2008 14:41

Its seems like you dont have the account kontakt Can you type this
Code:

id kontakt
To verify if the account exists on the system.


All times are GMT +2. The time now is 11:31.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.