I'm having some problems receiving mails but I can send fine. I'm using the Perfect Mandriva 2006 setup. Here are my logs and setup files. Can someone please help me out. Thanks in advannce. main.cf 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,reject_unauth_destination mydomain = tech4you.org myhostname = linux.$mydomain mydestination = /etc/postfix/local-host-names, localhost.tech4you.org relayhost = smtp.comcast.net 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 virtual_maps = hash:/etc/postfix/virtusertable warnings Aug 28 20:52:47 linux postfix/postmap[2852]: warning: /etc/postfix/virtusertable.db: duplicate entry: "[email protected]" Aug 28 20:52:47 linux postfix/postmap[2852]: warning: /etc/postfix/virtusertable.db: duplicate entry: "[email protected]" Aug 28 20:54:11 linux postfix/postmap[3262]: warning: /etc/postfix/virtusertable.db: duplicate entry: "[email protected]" Aug 28 20:54:11 linux postfix/postmap[3262]: warning: /etc/postfix/virtusertable.db: duplicate entry: "[email protected]" Aug 28 20:54:11 linux postfix/postmap[3262]: warning: /etc/postfix/virtusertable.db: duplicate entry: "[email protected]" Aug 28 20:54:46 linux postfix/postmap[3756]: warning: /etc/postfix/virtusertable.db: duplicate entry: "[email protected]" Aug 28 20:54:46 linux postfix/postmap[3756]: warning: /etc/postfix/virtusertable.db: duplicate entry: "[email protected]" Aug 28 20:54:46 linux postfix/postmap[3756]: warning: /etc/postfix/virtusertable.db: duplicate entry: "[email protected]" Aug 28 20:54:46 linux postfix/postmap[3756]: warning: /etc/postfix/virtusertable.db: duplicate entry: "[email protected]" Aug 28 23:13:36 linux postfix/smtpd[6824]: warning: Illegal address syntax from unknown[222.122.179.236] in MAIL command: [email protected] Aug 29 18:42:27 linux postfix[17488]: warning: valid_hostname: misplaced delimiter: linux. Aug 29 18:42:29 linux postfix[17490]: warning: valid_hostname: misplaced delimiter: linux. errors Aug 29 18:42:27 linux postfix[17488]: fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter value: linux. Aug 29 18:42:29 linux postfix[17490]: fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter value: linux.
info (mail log) Aug 30 06:42:08 linux postfix/anvil[4976]: statistics: max connection rate 3/60s for (smtp:141.150.64.155) at Aug 30 06:33:47 Aug 30 06:42:08 linux postfix/anvil[4976]: statistics: max connection count 1 for (smtp:141.150.64.155) at Aug 30 06:32:08 Aug 30 06:42:08 linux postfix/anvil[4976]: statistics: max cache size 1 at Aug 30 06:32:08 Aug 30 06:46:29 linux postfix/smtpd[5257]: connect from exchange.computerrents.com[141.150.64.155] Aug 30 06:46:30 linux postfix/smtpd[5257]: NOQUEUE: reject: RCPT from exchange.computerrents.com[141.150.64.155]: 450 <[email protected]>: Recipient address rejected: User unknown in local recipient table; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<exchange.computerrents.com> Aug 30 06:46:31 linux postfix/smtpd[5257]: disconnect from exchange.computerrents.com[141.150.64.155] Aug 30 06:49:51 linux postfix/anvil[5259]: statistics: max connection rate 1/60s for (smtp:141.150.64.155) at Aug 30 06:46:29 Aug 30 06:49:51 linux postfix/anvil[5259]: statistics: max connection count 1 for (smtp:141.150.64.155) at Aug 30 06:46:29 Aug 30 06:49:51 linux postfix/anvil[5259]: statistics: max cache size 1 at Aug 30 06:46:29 Aug 30 06:50:08 linux ipop3d[5311]: pop3 service init from 127.0.0.1 Aug 30 06:50:08 linux ipop3d[5311]: Login user=malli host=linux.tech4you.org [127.0.0.1] nmsgs=0/0 Aug 30 06:50:08 linux ipop3d[5311]: Logout user=malli host=linux.tech4you.org [127.0.0.1] nmsgs=0 ndele=0 Aug 30 06:52:27 linux postfix/postfix-script: stopping the Postfix mail system Aug 30 06:52:27 linux postfix/master[4610]: terminating on signal 15 Aug 30 06:52:28 linux postfix/postfix-script: starting the Postfix mail system Aug 30 06:52:28 linux postfix/master[5905]: daemon started -- version 2.2.5, configuration /etc/postfix Aug 30 07:01:19 linux ipop3d[6496]: pop3 service init from 127.0.0.1 Aug 30 07:01:19 linux ipop3d[6496]: Command stream end of file while reading line user=??? host=UNKNOWN Aug 30 07:01:19 linux postfix/smtpd[6495]: connect from linux.tech4you.org[127.0.0.1] Aug 30 07:01:19 linux postfix/smtpd[6495]: lost connection after CONNECT from linux.tech4you.org[127.0.0.1] Aug 30 07:01:19 linux postfix/smtpd[6495]: disconnect from linux.tech4you.org[127.0.0.1] Aug 30 07:01:33 linux postfix/smtpd[6495]: connect from exchange.computerrents.com[141.150.64.155] Aug 30 07:01:35 linux postfix/smtpd[6495]: NOQUEUE: reject: RCPT from exchange.computerrents.com[141.150.64.155]: 450 <[email protected]>: Recipient address rejected: User unknown in local recipient table; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<exchange.computerrents.com> Aug 30 07:01:37 linux postfix/smtpd[6495]: disconnect from exchange.computerrents.com[141.150.64.155] Aug 30 07:02:39 linux postfix/smtpd[6495]: connect from linux.tech4you.org[127.0.0.1] Aug 30 07:02:39 linux postfix/smtpd[6495]: lost connection after CONNECT from linux.tech4you.org[127.0.0.1] Aug 30 07:02:39 linux postfix/smtpd[6495]: disconnect from linux.tech4you.org[127.0.0.1] Aug 30 07:02:39 linux ipop3d[6574]: pop3 service init from 127.0.0.1 Aug 30 07:02:39 linux ipop3d[6574]: Command stream end of file while reading line user=??? host=UNKNOWN Aug 30 07:03:22 linux postfix/postfix-script: stopping the Postfix mail system Aug 30 07:03:22 linux postfix/master[5905]: terminating on signal 15 Aug 30 07:03:24 linux postfix/postfix-script: starting the Postfix mail system Aug 30 07:03:24 linux postfix/master[7104]: daemon started -- version 2.2.5, configuration /etc/postfix Aug 30 07:07:09 linux postfix/postfix-script: stopping the Postfix mail system Aug 30 07:07:10 linux postfix/master[7104]: terminating on signal 15 Aug 30 07:07:11 linux postfix/postfix-script: starting the Postfix mail system Aug 30 07:07:11 linux postfix/master[7648]: daemon started -- version 2.2.5, configuration /etc/postfix Aug 30 07:10:28 linux ipop3d[7722]: pop3 service init from 127.0.0.1 Aug 30 07:10:28 linux ipop3d[7722]: Login user=malli host=linux.tech4you.org [127.0.0.1] nmsgs=0/0 Aug 30 07:10:28 linux ipop3d[7722]: Logout user=malli host=linux.tech4you.org [127.0.0.1] nmsgs=0 ndele=0 Aug 30 07:10:32 linux ipop3d[7730]: pop3 service init from 127.0.0.1 Aug 30 07:10:32 linux ipop3d[7730]: Login user=malli host=linux.tech4you.org [127.0.0.1] nmsgs=0/0 Aug 30 07:10:32 linux ipop3d[7730]: Logout user=malli host=linux.tech4you.org [127.0.0.1] nmsgs=0 ndele=0 Aug 30 07:16:38 linux postfix/smtpd[7817]: connect from exchange.computerrents.com[141.150.64.155] Aug 30 07:16:39 linux postfix/smtpd[7817]: 70A0611428D: client=exchange.computerrents.com[141.150.64.155] Aug 30 07:16:39 linux postfix/cleanup[7823]: 70A0611428D: message-id=<195074D086D3034AA2D1EB5964886E12EA3368@exchange.computerrents.com> Aug 30 07:16:39 linux postfix/qmgr[7654]: 70A0611428D: from=<[email protected]>, size=15006, nrcpt=1 (queue active) Aug 30 07:16:39 linux postfix/pickup[7653]: E2EE5114296: uid=10003 from=<malli> Aug 30 07:16:39 linux postfix/cleanup[7823]: E2EE5114296: message-id=<[email protected]> Aug 30 07:16:39 linux postfix/qmgr[7654]: E2EE5114296: from=<[email protected]>, size=378, nrcpt=1 (queue active) Aug 30 07:16:40 linux postfix/local[7836]: E2EE5114296: to=<[email protected]>, relay=local, delay=1, status=sent (delivered to command: /usr/bin/procmail -f-) Aug 30 07:16:40 linux postfix/qmgr[7654]: E2EE5114296: removed Aug 30 07:16:40 linux postfix/local[7824]: 70A0611428D: to=<[email protected]>, orig_to=<[email protected]>, relay=local, delay=1, status=sent (delivered to command: /usr/bin/procmail -f-)
The last email seems to be delivered fine. Does this email arrive in the Maildir or Mbox file of the user malli ?
Hey Till, Thanks for the response. I do have maildir setup on my server, however, the mail didn't appear in malli's inbox. I have aliases setup for this inbox, admin, administrator, postmaster and webmaster. Is there anything I could check to see if the mail is there? Thanks
netstat -tap Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 *:imaps *:* LISTEN 6450/xinetd tcp 0 0 *:32769 *:* LISTEN - tcp 0 0 *:nfs *:* LISTEN - tcp 0 0 *op3s *:* LISTEN 6450/xinetd tcp 0 0 linux.tech4you.org:10026 *:* LISTEN 21841/master tcp 0 0 *:mysql *:* LISTEN 7856/mysqld tcp 0 0 *:netbios-ssn *:* LISTEN 9851/smbd tcp 0 0 *op3 *:* LISTEN 6450/xinetd tcp 0 0 *:imap *:* LISTEN 6450/xinetd tcp 0 0 *:sunrpc *:* LISTEN 2202/portmap tcp 0 0 *:http *:* LISTEN 11032/httpd tcp 0 0 *:10000 *:* LISTEN 8886/perl tcp 0 0 *:x11 *:* LISTEN 2750/X tcp 0 0 *:81 *:* LISTEN 10738/ispconfig_htt tcp 0 0 *:692 *:* LISTEN 3057/rpc.mountd tcp 0 0 *:ftp *:* LISTEN 21727/proftpd: (acc tcp 0 0 192.168.1.6:domain *:* LISTEN 11189/named tcp 0 0 192.168.1.5:domain *:* LISTEN 11189/named tcp 0 0 linux.tech4you.org:domain *:* LISTEN 11189/named tcp 0 0 linux.tech4you.org:5335 *:* LISTEN 2835/mDNSResponder tcp 0 0 *:smtp *:* LISTEN 21841/master tcp 0 0 *:https *:* LISTEN 11032/httpd tcp 0 0 *:763 *:* LISTEN 2277/rpc.statd tcp 0 0 *:microsoft-ds *:* LISTEN 9851/smbd tcp 0 0 *:7741 *:* LISTEN 3797/lisa tcp 0 0 *:x11 *:* LISTEN 2750/X tcp 0 0 *:ssh *:* LISTEN 18990/sshd tcp 0 408 ::ffff:192.168.1.5:ssh c-68-38-99-243.hsd1.n:20311 ESTABLISHED 15013/1
Please make sure you have not checked the "Maildir" checkbox in ISPConfig under management > server > settings. Please post the output of: ls -la /var/spool/mail
Hey Till, Thanks for pointing me in the right direction because unchecking maildir fixed the problem. Now mails go and come to the server. However, if I wanted to use maildir, would it be as simple as checking the box again or would I have to run a script to convert the mbox to maildir? Below is my output: ls -la /var/spool/mail total 428 drwxrwsr-x 2 root mail 4096 Sep 1 08:25 ./ drwxr-xr-x 9 root root 4096 Aug 28 17:50 ../ -rw------- 1 admispconfig mail 0 Aug 28 20:06 admispconfig -rw------- 1 gmcgrath mail 0 Aug 29 12:48 gmcgrath -rw------- 1 mail mail 1514 Sep 1 05:00 mail -rw------- 1 malli mail 6028 Sep 1 08:25 malli -rw------- 1 postfix mail 411924 Sep 1 04:14 postfix Thanks, Rocky
You'd have to replace your existing POP3 server with a POP3 server that uses Maildir, like Courier or Dovecot, and you'd have to enable Maildir again in ISPConfig. To convert your mbox mailboxes to Maildir, you 'd have to use a script such as mb2md.
Hey Falko, Thanks for the response. I think Mandriva 2006 is using cyrus as the default imap/pop server which doesn't support mbox. Now, would it be as simple as running the following? urpme cyrus urpmi courier mb2md command to convert mbox to maildir for each users mailbox check the option to enable maildir in ISPConfig restart ISPConfig Thanks, Rocky
If you are laready using cyrus, it is not nescessary to install courier to use ipsconfig with maildir as cyrus supports maildir as well. Just do this:
Hey Till, Thanks for the reply, but I still have a few questions. How would I install mb2md on my Mandriva 2006/ISPConfig box and where would I find the mbox file to convert? Would it be the files located in var/mail/ or the files located at /var/spoo/mail/? There is a Maildir in /var/www/web9/ and also one in /var/www/web9/user/john/. Will my destination be /var/www/web9/Maildir/ or /var/www/web9/user/john/Maildir? Assuming that the mbox file is under /var/mail/ and the destination is under /var/www/web9/Maildir/, does this syntax look correct? mb2md -c -s /var/mail/john -d /var/www/web9/Maildir/john Please help me out with this one because I'm confused. Thanks, Rocky
IIf there is a mandriva package with the name mb2md, install that, if not, have a look here: http://batleth.sapienti-sat.org/projects/mb2md/ Just download the mb2md script (the lonk is at the end of the page), unpack the tar.gz file and copy the mb2md file to your /usr/bin directory. The directories are symlinked, so you can use one of the, e.g. /var/mail/ because its shorter Use always the directory inside the "user" directory, in this case: /var/www/web9/user/john/Maildir Try first without the -c option, if this wont work you can try with -c.
Hey Till, Thanks for pointing me in the right direction. I've done what you told me to by first downloading mb2md and placing it in the /usr/bin directory. I then ran the following command: I was logged in a root sudo -u john mb2md-3.20.pl -s /var/mail/john -d /var/www/web3/user/john/Maildir It seemed to have worked because I noticed that it created 3 additional folder in /var/www/web3/user/john/Maildir: cur new tmp I then went into ISPConfig manager and check the box to use maildir and restarted ISPConfig. Unfortunately, when I sent a mail from the outside to John's account, it didn't come through. The log said it was delivered though. I then went back into ISPConfig manager and unchecked the box for maildir and restarted ISPConfig. I sent another mail and it came through. I was wondering if I had to change all the mailboxes into maildir format before this could work. I have 3 additional mail account in my /var/mail/ folder. They are: admispconfig mail postfix Do I have to convert those as well? If so, what would the destination directory be? Thanks, Rocky
Which POP3 server do you currently use? I guess it's a POP3 server that uses mbox. What's the output of Code: netstat -tap ?
Below is my netstat -tap result. Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 *:imaps *:* LISTEN 6450/xinetd tcp 0 0 *:32769 *:* LISTEN - tcp 0 0 *:nfs *:* LISTEN - tcp 0 0 *op3s *:* LISTEN 6450/xinetd tcp 0 0 linux.tech4you.org:10026 *:* LISTEN 9463/master tcp 0 0 *:mysql *:* LISTEN 30754/mysqld tcp 0 0 *:netbios-ssn *:* LISTEN 9851/smbd tcp 0 0 *op3 *:* LISTEN 6450/xinetd tcp 0 0 *:imap *:* LISTEN 6450/xinetd tcp 0 0 *:sunrpc *:* LISTEN 2202/portmap tcp 0 0 *:http *:* LISTEN 30144/httpd tcp 0 0 *:10000 *:* LISTEN 8886/perl tcp 0 0 *:x11 *:* LISTEN 2750/X tcp 0 0 *:81 *:* LISTEN 29849/ispconfig_htt tcp 0 0 *:692 *:* LISTEN 3057/rpc.mountd tcp 0 0 *:ftp *:* LISTEN 9349/proftpd: (acce tcp 0 0 192.168.1.6:domain *:* LISTEN 30302/named tcp 0 0 192.168.1.5:domain *:* LISTEN 30302/named tcp 0 0 linux.tech4you.org:domain *:* LISTEN 30302/named tcp 0 0 linux.tech4you.org:5335 *:* LISTEN 2835/mDNSResponder tcp 0 0 *:smtp *:* LISTEN 9463/master tcp 0 0 *:https *:* LISTEN 30144/httpd tcp 0 0 *:763 *:* LISTEN 2277/rpc.statd tcp 0 0 *:microsoft-ds *:* LISTEN 9851/smbd tcp 0 0 *:7741 *:* LISTEN 3797/lisa tcp 0 0 *:x11 *:* LISTEN 2750/X tcp 0 0 *:ssh *:* LISTEN 18990/sshd
You are still running a mbox pop3 and imap server over xinetd. Please uninstall your old imap / pop3 server or disable them in your xinetd configuration, then start / install courier or dovecot pop3 and imap.
Contents of my xinetd.d file: cvs imap imaps ipop2 ipop3 pop3s proftpd-xinetd rsync sshd-xinetd Next step is to remove imap, imaps, ipop2, ipop3 and pop3s from my server Would I use the command urpme imap and so on? Then when I tried installing courier, it said: [root@linux etc]# urpmi courier no package named courier The following packages contain courier: courier-authdaemond courier-authlib-ldap courier-authlib-mysql courier-authlib-pgsql courier-authlib-userdb courier-imap courier-imap-ldap courier-imap-mysql courier-imap-pgsql courier-imap-pop courier-imap-utils libcourier-authlib0 libcourier-authlib0-devel If I remove imap, imaps, ipop2, ipop3 and pop3s from my server, would courier become the default and turn on or would I have to turn it on manually?
What's in those files? There's a setting in them (disable=yes or something like that) that lets you disable these services. Restart xinetd afterwards. You don't need to uninstall them when they are disabled in xinetd. See Code: man chkconfig to find out how to make Courier start at boot time.
Hey Falko, I've edited the ipop3 file and disabled it by adding disable = yes. I then installed courier-imap, which installed successfully. I start courier by running /etc/init.d/courier-imap start. I went into ISPConfig and changed my Mail server to use maildir. I then tried connected to my email and received the following error when loggin in: Warning: fsockopen() [function.fsockopen]: unable to connect to localhost:110 (Connection refused) in /home/admispconfig/ispconfig/web/webmail/inc/class.uebimiau_mail.php on line 66 Warning: Cannot modify header information - headers already sent by (output started at /home/admispconfig/ispconfig/web/webmail/inc/class.uebimiau_mail.php:66) in /home/admispconfig/ispconfig/web/webmail/msglist.php on line 64 Any suggestions?