Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 22nd January 2008, 16:44
sojic sojic is offline
Member
 
Join Date: Jul 2007
Posts: 92
Thanks: 7
Thanked 0 Times in 0 Posts
Default 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]#
Reply With Quote
Sponsored Links
  #2  
Old 23rd January 2008, 09:46
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 154 Times in 151 Posts
Default

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
Reply With Quote
  #3  
Old 23rd January 2008, 13:16
sojic sojic is offline
Member
 
Join Date: Jul 2007
Posts: 92
Thanks: 7
Thanked 0 Times in 0 Posts
Default

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?
Reply With Quote
  #4  
Old 23rd January 2008, 13:27
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 154 Times in 151 Posts
Default

Post the log let me see what the problem is
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #5  
Old 23rd January 2008, 14:44
sojic sojic is offline
Member
 
Join Date: Jul 2007
Posts: 92
Thanks: 7
Thanked 0 Times in 0 Posts
Default

Which logfile, which part?

/var/log/maillog?
Reply With Quote
  #6  
Old 23rd January 2008, 15:33
sojic sojic is offline
Member
 
Join Date: Jul 2007
Posts: 92
Thanks: 7
Thanked 0 Times in 0 Posts
Default

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]#
Reply With Quote
  #7  
Old 23rd January 2008, 20:22
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 154 Times in 151 Posts
Default

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.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #8  
Old 24th January 2008, 15:33
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,748 Times in 2,579 Posts
Default

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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 30th January 2008, 15:27
sojic sojic is offline
Member
 
Join Date: Jul 2007
Posts: 92
Thanks: 7
Thanked 0 Times in 0 Posts
Default

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.
Attached Images
 
Reply With Quote
  #10  
Old 30th January 2008, 15:41
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 154 Times in 151 Posts
 
Default

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.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 13:20
mail problems with imap Compadre Installation/Configuration 2 6th March 2008 11:54
dovecot problem - help please! samoand Server Operation 2 6th January 2008 10:25
Problem with uebimiau + dovecot tr4d3r General 5 28th August 2007 11:08
Suse Postfix + Dovecot + ISP Config + smtp Auth; recieving problem! fatum112 HOWTO-Related Questions 2 15th January 2006 20:03


All times are GMT +2. The time now is 16:29.


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