PDA

View Full Version : Unable ro read mail


ddorado
18th March 2006, 23:14
Sorry, my english is no good.

Ubuntu 10, postfix & courier

Maildir activated in ISPconfig

netstat -tap
---------------

root@obelix:/etc/courier# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:20000 *:* LISTEN 8010/perl
tcp 0 0 obelix.local:32769 *:* LISTEN 7176/hpiod
tcp 0 0 obelix.local:32770 *:* LISTEN 7189/python
tcp 0 0 obelix.local:10024 *:* LISTEN 7142/amavisd (maste
tcp 0 0 obelix.local:mysql *:* LISTEN 7484/mysqld
tcp 0 0 *:netbios-ssn *:* LISTEN 7778/smbd
tcp 0 0 *:9999 *:* LISTEN 8011/perl
tcp 0 0 *:81 *:* LISTEN 8713/ispconfig_http
tcp 0 0 *:ftp *:* LISTEN 8900/proftpd: (acce
tcp 0 0 10.0.103.4:domain *:* LISTEN 8884/named
tcp 0 0 10.0.103.3:domain *:* LISTEN 8884/named
tcp 0 0 10.0.103.2:domain *:* LISTEN 8884/named
tcp 0 0 obelix.tallerdew:domain *:* LISTEN 8884/named
tcp 0 0 obelix.local:domain *:* LISTEN 8884/named
tcp 0 0 obelix.local:ipp *:* LISTEN 7156/cupsd
tcp 0 0 obelix.local:postgresql *:* LISTEN 7646/postmaster
tcp 0 0 *:smtp *:* LISTEN 10104/master
tcp 0 0 obelix.local:953 *:* LISTEN 8884/named
tcp 0 0 *:microsoft-ds *:* LISTEN 7778/smbd
tcp 0 0 obelix.local:32769 obelix.local:46020 ESTABLISHED7176/hpiod
tcp 0 0 obelix.local:46020 obelix.local:32769 ESTABLISHED7189/python
tcp6 0 0 *:imaps *:* LISTEN 7360/couriertcpd
tcp6 0 0 *:pop3s *:* LISTEN 7401/couriertcpd
tcp6 0 0 *:pop3 *:* LISTEN 7378/couriertcpd
tcp6 0 0 *:imap2 *:* LISTEN 7332/couriertcpd
tcp6 0 0 *:www *:* LISTEN 8751/apache2
tcp6 0 0 *:ssh *:* LISTEN 7813/sshd
tcp6 0 0 ::1%134618872:953 *:* LISTEN 8884/named
tcp6 0 1060 obelix.tallerdeweb.:ssh ::ffff:10.0.97.220:3909 ESTABLISHED8023/0


main.cf
-------
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

myhostname = obelix.tallerdeweb.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = /etc/postfix/local-host-names
relayhost =
mynetworks = 127.0.0.0/8 10.0.103.1/32 10.0.103.2/32 10.0.103.3/32 10.0.103.4/32
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
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,reject _unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_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
home_mailbox = Maildir/
mailbox_command =
virtual_maps = hash:/etc/postfix/virtusertable


The new mail is arrived to /var/spool/mail ****, but whith outloook i'dont receive messages

Best regards

falko
19th March 2006, 00:21
Looks ok. Did you send to a user you created with ISPConfig, or to another user?
What's in the mail log when you send a mail to this user?

ddorado
19th March 2006, 00:38
the user was created with ISPContig web interface.

When I write mail to the user, the log says ...


Mar 18 23:36:40 obelix postfix/pickup[11374]: 705DF56C948: uid=0 from=<root>
Mar 18 23:36:40 obelix postfix/cleanup[13103]: 705DF56C948: message-id=<20060318223640.705DF56C948@obelix.tallerdeweb.com>
Mar 18 23:36:40 obelix postfix/qmgr[11375]: 705DF56C948: from=<root@obelix.tallerdeweb.com>, size=334, nrcpt=1 (queue active)
Mar 18 23:36:40 obelix procmail[13151]: Suspicious rcfile "/home/www/web1/.procmailrc"
Mar 18 23:36:40 obelix postfix/local[13105]: 705DF56C948: to=<web1_002@obelix.tallerdeweb.com>, orig_to=<web1_002@ppdecoruna.com>, relay=local, delay=0, status=sent (delivered to command: /usr/bin/procmail -f-)
Mar 18 23:36:40 obelix postfix/qmgr[11375]: 705DF56C948: removed

ddorado
19th March 2006, 13:52
If i disabled the "admin" option email tab, all works fine. I send and receive mail correctly

When I check the "admin" checkbox in any user, I dont receive mails to Maildir. The mails arrive to /var/spool/mail ****



Then procmail manual says ....

Suspicious rcfile "x" The owner of the rcfile was not the
recipient or root, or the directory
that contained it was world
writable (the rcfile was not used).


Permisions
---------------

> ls -al /home/www/web1


root@obelix:/home/www/web1# ls -al
drwxrwxrwx 8 web1_002 web1 4096 2006-03-19 12:29 .
drwxrwxrwx 7 root root 4096 2006-03-19 00:30 ..
drwxrwxr-x 2 web1_002 web1 4096 2006-03-18 12:58 cgi-bin
-rw------- 1 web1_002 web1 24 2006-03-19 12:29 .forward
-rw-rw-r-- 1 root web1 46 2006-03-19 04:00 .htpasswd
drwxr-xr-x 3 web1_002 web1 4096 2006-03-19 00:30 log
lrwxrwxrwx 1 root root 36 2006-03-19 12:29 Maildir -> /home/www/web1/user/web1_002/Maildir
drwxrwxrwx 2 web1_002 web1 4096 2006-03-18 23:59 phptmp
-rw-r--r-- 1 root root 450 2006-03-19 12:29 .procmailrc
drwxr-xr-x 2 web1_002 web1 4096 2006-03-18 12:58 ssl
drwxr-xr-x 5 web1_002 web1 4096 2006-03-18 18:34 user
lrwxrwxrwx 1 root root 44 2006-03-19 12:29 .vacation.cache -> /home/www/web1/user/web1_002/.vacation.cache
drwxrwxr-x 15 web1_002 web1 4096 2006-03-19 04:00 web


ls -al /home/www/web1/user/web1_002/Maildir

drwx------ 5 web1_002 web1 4096 2006-03-19 12:19 .
drwxr-xr-x 4 web1_002 web1 4096 2006-03-19 12:29 ..
-rw-r--r-- 1 web1_002 web1 79 2006-03-19 12:21 courierpop3dsizelist
drwx------ 2 web1_002 web1 4096 2006-03-19 12:21 cur
drwx------ 2 web1_002 web1 4096 2006-03-19 12:21 new
drwx------ 2 web1_002 web1 4096 2006-03-19 12:21 tmp


Whats happening ?

Best regards

ddorado
19th March 2006, 14:12
I have a wrong permisions in parent directory.

Best regards