Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 11th August 2006, 01:13
euricojunior euricojunior is offline
Junior Member
 
Join Date: Aug 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Maildir and mail folder problem

Hi

Now, my mail server is working for send and received, but when send email (SMTP) is archived in folder '/var/www/my_web/user/my_user/Maildir/new' and when try read (POP3) file '/var/mail/my_user' is used...

I don't know alter folder for read emails in folder '/var/www/my_web/user/my_user/Maildir/new' (this is correct...)

I have 10 emails sends (in webmail and thunderbird) and when try read (POP3), the message is 'No new messages in server'...

Anybody help me, please?
Reply With Quote
Sponsored Links
  #2  
Old 11th August 2006, 01:31
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

Did you exactly setup your mailserver according Falko's "Perfect setup" ?

Did you enable Maildir in ISPConfig under Management>Settings>Email ?
Do you use Postfix? If yes, what is in your /etc/postfix/main.cf ?
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005

Last edited by Hans; 11th August 2006 at 07:34.
Reply With Quote
  #3  
Old 11th August 2006, 01:36
euricojunior euricojunior is offline
Junior Member
 
Join Date: Aug 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Maildir is setting in Management->Settings->Email...

My main.cf:

##################################################
# These are only the parameters changed from a default install
# see /etc/postfix/main.cf.dist for a commented, fuller version of this file.

# These are changed by postfix install script
readme_directory = /usr/share/doc/postfix-2.2.5/README_FILES
html_directory = /usr/share/doc/postfix-2.2.5/html
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
command_directory = /usr/sbin
manpage_directory = /usr/share/man
daemon_directory = /usr/lib/postfix
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
queue_directory = /var/spool/postfix
mail_owner = postfix

# User configurable parameters

inet_interfaces = all
mynetworks_style = host
delay_warning_time = 4h
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Mandriva Linux)
unknown_local_recipient_reject_code = 450
smtp-filter_destination_concurrency_limit = 2
lmtp-filter_destination_concurrency_limit = 2
smtpd_sasl_path = /etc/postfix/sasl:/usr/lib/sasl2
recipient_delimiter = +
owner_request_special = no
alias_maps = hash:/etc/postfix/aliases, hash:/var/lib/mailman/data/aliases
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,rejec
mydomain = grupooharaby.com.br
myhostname = sistema.$mydomain
mydestination = /etc/postfix/local-host-names,localhost,$myhostname,$mydomain
mynetworks = 127.0.0.0/8,192.168.200.0/24,192.168.100.0/24
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtpd_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

virtual_maps = hash:/etc/postfix/virtusertable
##################################################

Thanks for your help...
Reply With Quote
  #4  
Old 11th August 2006, 02:06
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

If this is a "Perfect ISPConfig server", why did you add so many modifications to your main.cf ?
Is this necesarry for you?

I would try this:

Add:

mydestination = /etc/postfix/local-host-names

in stead of:

mydestination = servername.mydomain.tld, localhost.mydomain.tld, localhost

Change:

myhostname = sistema.$mydomain

into:

myhostname = sistema.grupooharaby.com.br

If you use Maildir format add this:

home_mailbox = Maildir/

Finally restart Postfix with the command:

/etc/postfix reload
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005

Last edited by Hans; 11th August 2006 at 07:33.
Reply With Quote
  #5  
Old 11th August 2006, 02:26
euricojunior euricojunior is offline
Junior Member
 
Join Date: Aug 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Nothing...

I change:
mydestination = /etc/postfix/local-host-names
myhostname = sistema.grupooharaby.com.br
home_mailbox = Maildir/

and restart postfix, but thunderbird show message 'No new emails in server' again...

In folder '/var/www/my_web/user/my_user/Maildir/new' exist more of than 10 messages in list...

Waiting (thanks)...
Reply With Quote
  #6  
Old 11th August 2006, 06:19
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

What is in your: /var/log/mail.log file ?
You see any error messages?
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005

Last edited by Hans; 11th August 2006 at 06:28.
Reply With Quote
  #7  
Old 11th August 2006, 15:20
euricojunior euricojunior is offline
Junior Member
 
Join Date: Aug 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No errors. In log file, when send email:

Aug 11 07:14:41 sistema postfix/smtpd[2086]: connect from unknown[192.168.200.199]
Aug 11 07:14:41 sistema postfix/smtpd[2086]: setting up TLS connection from unknown[192.168.200.199]
Aug 11 07:14:44 sistema postfix/smtpd[2086]: TLS connection established from unknown[192.168.200.199]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
Aug 11 07:14:44 sistema postfix/smtpd[2086]: 37631D046C: client=unknown[192.168.200.199], sasl_method=PLAIN, sasl_username=oharaby@grupooharaby.com.br
Aug 11 07:14:44 sistema postfix/cleanup[2092]: 37631D046C: message-id=<44DC82A2.9050502@grupooharaby.com.br>
Aug 11 07:14:44 sistema postfix/smtpd[2086]: disconnect from unknown[192.168.200.199]
Aug 11 07:14:44 sistema postfix/qmgr[19452]: 37631D046C: from=<oharaby@grupooharaby.com.br>, size=699, nrcpt=1 (queue active)
Aug 11 07:14:44 sistema postfix/pickup[1488]: E7412D046E: uid=10006 from=<usu5_oharaby>
Aug 11 07:14:44 sistema postfix/cleanup[2092]: E7412D046E: message-id=<20060811101444.E7412D046E@sistema.grupooharaby .com.br>
Aug 11 07:14:45 sistema postfix/qmgr[19452]: E7412D046E: from=<usu5_oharaby@sistema.grupooharaby.com.br>, size=402, nrcpt=1 (queue active)
Aug 11 07:14:45 sistema postfix/local[2107]: E7412D046E: to=<admispconfig@localhost.grupooharaby.com.br>, orig_to=<admispconfig@localhost>, relay=local, delay=1, status=sent (delivered to command: /usr/bin/procmail -f-)
Aug 11 07:14:45 sistema postfix/qmgr[19452]: E7412D046E: removed
Aug 11 07:14:48 sistema postfix/local[2093]: 37631D046C: to=<usu5_oharaby@sistema.grupooharaby.com.br>, orig_to=<oharaby@grupooharaby.com.br>, relay=local, delay=4, status=sent (delivered to command: /usr/bin/procmail -f-)
Aug 11 07:14:48 sistema postfix/qmgr[19452]: 37631D046C: removed


When receive email from thunderbird (Message is 'No new message in server'):

Aug 11 07:15:46 sistema ipop3sd[2131]: pop3s SSL service init from 192.168.200.199
Aug 11 07:15:46 sistema ipop3sd[2131]: Auth user=usu5_oharaby host=[192.168.200.199] nmsgs=0/0
Aug 11 07:15:46 sistema ipop3sd[2131]: Logout user=usu5_oharaby host=[192.168.200.199] nmsgs=0 ndele=0

Messages in folder:

[root@sistema new]# pwd
/var/www/web5/user/usu5_oharaby/Maildir/new
[root@sistema new]# ls -all
total 68
drwx------ 2 usu5_oharaby web5 4096 Ago 11 07:14 ./
drwx------ 5 usu5_oharaby web5 4096 Ago 9 12:48 ../
-rw------- 1 usu5_oharaby web5 944 Ago 9 12:48 1155138528.27554_1.sistema.grupooharaby.com.br
-rw------- 1 usu5_oharaby web5 959 Ago 9 12:50 1155138620.27645_0.sistema.grupooharaby.com.br
-rw------- 1 usu5_oharaby web5 942 Ago 9 12:57 1155139027.28026_0.sistema.grupooharaby.com.br
-rw------- 1 usu5_oharaby web5 946 Ago 9 18:11 1155157916.32442_0.sistema.grupooharaby.com.br
-rw------- 1 usu5_oharaby web5 946 Ago 9 18:15 1155158150.32532_0.sistema.grupooharaby.com.br
-rw------- 1 usu5_oharaby web5 1299 Ago 10 16:29 1155238183.9433_0.sistema.grupooharaby.com.br
-rw------- 1 usu5_oharaby web5 1299 Ago 10 16:43 1155239033.10642_0.sistema.grupooharaby.com.br
-rw------- 1 usu5_oharaby web5 1121 Ago 10 16:44 1155239080.10677_0.sistema.grupooharaby.com.br
-rw------- 1 usu5_oharaby web5 1123 Ago 10 16:46 1155239166.10733_0.sistema.grupooharaby.com.br
-rw------- 1 usu5_oharaby web5 1297 Ago 10 16:57 1155239823.11732_0.sistema.grupooharaby.com.br
-rw------- 1 usu5_oharaby web5 1123 Ago 10 16:57 1155239848.11764_0.sistema.grupooharaby.com.br
-rw------- 1 usu5_oharaby web5 1161 Ago 10 17:55 1155243321.13170_0.sistema.grupooharaby.com.br
-rw------- 1 usu5_oharaby web5 1297 Ago 10 17:55 1155243340.13201_0.sistema.grupooharaby.com.br
-rw------- 1 usu5_oharaby web5 1161 Ago 10 21:12 1155255162.17030_1.sistema.grupooharaby.com.br
-rw------- 1 usu5_oharaby web5 1133 Ago 11 07:14 1155291288.2094_0.sistema.grupooharaby.com.br


Thanks your help...
Reply With Quote
  #8  
Old 11th August 2006, 17:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

What's the output of
Code:
netstat -tap
?
__________________
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 11th August 2006, 17:49
euricojunior euricojunior is offline
Junior Member
 
Join Date: Aug 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

[root@sistema ~]# netstat -tap
tcp 0 0 *:imaps *:* OUÇA 3633/xinetd
tcp 0 0 *op3s *:* OUÇA 3633/xinetd
tcp 0 0 *op3 *:* OUÇA 3633/xinetd
tcp 0 0 *:imap *:* OUÇA 3633/xinetd

Thanks for help...
Reply With Quote
  #10  
Old 12th August 2006, 17:13
euricojunior euricojunior is offline
Junior Member
 
Join Date: Aug 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

i resolved this:

In perfect setup for mandriva 2006, the installation default is cyrus-sasl, but in documentation (http://www.postfix.org/faq.html#poppers) cyrus not provide access in Maildir-style mainbox.

In my ISP config (Management->Server->Settings->Email) is enable Maildir. I disable this, restart postfix, xinited and saslauthd and my email send and receive emails...

Thanks for help....
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
Not receiving any incoming mail. Jcorrea920 General 11 3rd April 2010 13:08
Mail going to /var/spool/mail instead of Maildir kougarsmith General 8 8th June 2006 17:19
Once again, mail problem momo General 12 24th February 2006 12:35
Mail being delivered to maildir, pop mail app doesn't see nitefox Installation/Configuration 5 2nd February 2006 10:47
Maildir problem rosa hsiao General 7 13th January 2006 07:57


All times are GMT +2. The time now is 12:14.


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