#1  
Old 10th April 2012, 13:31
Alexhor Alexhor is offline
Junior Member
 
Join Date: Apr 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Local mail server - final touch

Hi everyone,
this is my first post here. After trying to do everything by myself as a beginer, following tutorials, reading solutions to my questions on this forum, i get some kind of configuration which i think suits me, but it doesnt work as expected.
I don't want to abuse some others thread, and i hope opening new thread will get me to my goal.
Here are the stats. I installed UBUNTU 11.10 forllowing Perfect server procedure with ISPCOnfig3.
What I would like to do?
I want to have local mail server, which will collect about dozen of my external e-mails from different servers, kind of drop them to my local maibox, and i would like to read those mails from any of my 5 other machines inside my home LAN (and eventualy answer them, by meaning that my local server will actually not send mail itself vbut route it to my regular isp. At the moment i think it is not necesarry to use email-clients burt rather Squirelmail. Basicaly I need a central point to handle all my mails on one place, which will be used as a mediator between my machines inside LAN and different mail servers over the internet.
While I was following procedures, I got lost somewhere on the way, but I think i am very close to make this things working.
I am not sure what other information i should give you to state my problem, but here it is what i understand so far.
Ubuntu installation is ok, Apache2 operational, Postfix started, Dovecot and Courier installed (i cant say the difference between), Squirelmail installed, ISPconfig3 installed.
I can access ISPConfig and do all necesarry setings. I can access Squirellmail via /webmail, but I cannot login as user which I added through ISPConfig3.
Reading mail logs on ISPConfig3, there are some number of warnings which I didn't suceed resolving.
As I noted the pattern and the nature of possible help here, I understand that It is easier to get solution while someone of you is asking me to get some info from my console or whatsoever.
So to start somewhere lets start with the following:
my system FQDN is server.home attached to local IP address, it works ok.
Via ISPconfig3 i added new mail domain as mail.home, added mailbox alex and its password. I understand that I should login to Squirelmail using alex@mail.home and password but SM said it is wrong and i cannot get in. What I did wrong? Thanks much
Reply With Quote
Sponsored Links
  #2  
Old 11th April 2012, 19:50
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

Quote:
Originally Posted by Alexhor View Post
Dovecot and Courier installed (i cant say the difference between)
Why did you install two POP3/IMAP daemons?

What's the output of
Code:
netstat -tap
? Are there any errors in /var/log/mail.log?
__________________
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
  #3  
Old 11th April 2012, 20:16
Alexhor Alexhor is offline
Junior Member
 
Join Date: Apr 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

As i said, I am beginner and i didn't get the difference between Dovecot and Courier. In ISPConfig3 there is an option to chose this, so when one thing didnt work i tried with another. Believe me that I am more confused then you.
Anyhow, I realy respect that you answered me.
Here is what you asked:
Active Internet connections (servers and established)
netstat -tap

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:http-alt *:* LISTEN 2711/apache2
tcp 0 0 *:www *:* LISTEN 2711/apache2
tcp 0 0 *:webmin *:* LISTEN 1614/perl
tcp 0 0 *:tproxy *:* LISTEN 2711/apache2
tcp 0 0 *:ftp *:* LISTEN 2625/pure-ftpd (SER
tcp 0 0 server.local:domain *:* LISTEN 1692/named
tcp 0 0 localhost:domain *:* LISTEN 1692/named
tcp 0 0 *:ssh *:* LISTEN 889/sshd
tcp 0 0 *:1143 *:* LISTEN 2723/imapproxyd
tcp 0 0 localhost:ipp *:* LISTEN 1015/cupsd
tcp 0 0 localhostostgresql *:* LISTEN 1876/postgres
tcp 0 0 *:smtp *:* LISTEN 2600/master
tcp 0 0 localhost:953 *:* LISTEN 1692/named
tcp 0 0 *:https *:* LISTEN 2711/apache2
tcp 0 0 *:ldap *:* LISTEN 1944/slapd
tcp 0 0 localhost:10024 *:* LISTEN 1839/amavisd (maste
tcp 0 0 localhost:10025 *:* LISTEN 2600/master
tcp 0 0 *:mysql *:* LISTEN 1216/mysqld
tcp 0 0 server.local:37496 2.20.181.97:www ESTABLISHED 3109/firefox
tcp 0 0 server.local:55319 ec2-107-22-178-29.c:www ESTABLISHED 3109/firefox
tcp 0 0 server.local:55320 ec2-107-22-178-29.c:www ESTABLISHED 3109/firefox
tcp 0 0 server.local:54150 80-239-148-95.custo:www ESTABLISHED 3109/firefox
tcp 0 0 server.local:39114 muc03s02-in-f6.1e10:www ESTABLISHED 3109/firefox
tcp 0 0 server.local:46217 muc03s02-in-f13.1e1:www ESTABLISHED 3109/firefox
tcp 0 0 server.local:60685 www-slb-11-02-ash3.:www ESTABLISHED 3109/firefox
tcp 0 0 server.local:35400 muc03s02-in-f6.1e:https ESTABLISHED 3109/firefox
tcp 0 0 localhost:10025 localhost:38172 ESTABLISHED 2731/smtpd
tcp 0 0 localhost:42538 localhost:mysql TIME_WAIT -
tcp 0 0 server.local:54309 muc03s02-in-f2.1e10:www ESTABLISHED 3109/firefox
tcp 0 0 server.local:47708 muc03s02-in-f26.1:https ESTABLISHED 3109/firefox
tcp 0 0 server.local:55322 ec2-107-22-178-29.c:www ESTABLISHED 3109/firefox
tcp 0 0 server.local:46019 muc03s02-in-f23.1e1:www ESTABLISHED 3109/firefox
tcp 0 0 server.local:35399 muc03s02-in-f6.1e:https ESTABLISHED 3109/firefox
tcp 0 0 server.local:35398 muc03s02-in-f6.1e:https ESTABLISHED 3109/firefox
tcp 0 0 localhost:38172 localhost:10025 ESTABLISHED 1881/amavisd (ch1-a
tcp 0 0 server.local:54149 80-239-148-95.custo:www ESTABLISHED 3109/firefox
tcp 0 0 server.local:35401 muc03s02-in-f6.1e:https ESTABLISHED 3109/firefox
tcp 0 0 server.local:57248 muc03s02-in-f25.1e1:www ESTABLISHED 3109/firefox
tcp 0 0 server.local:37971 2.21.93.231:www ESTABLISHED 3109/firefox
tcp 0 0 server.local:55321 ec2-107-22-178-29.c:www ESTABLISHED 3109/firefox
tcp 0 0 server.local:35402 muc03s02-in-f6.1e:https ESTABLISHED 3109/firefox
tcp 0 0 server.local:44308 2.21.88.74:www ESTABLISHED 3109/firefox
tcp 0 0 server.local:58369 205.251.72.172:www ESTABLISHED 3109/firefox
tcp 0 0 server.local:35403 muc03s02-in-f6.1e:https ESTABLISHED 3109/firefox
tcp 0 0 server.local:36338 muc03s02-in-f3.1e:https ESTABLISHED 3109/firefox
tcp 0 0 server.local:39311 muc03s02-in-f26.1e1:www ESTABLISHED 3109/firefox
tcp 0 0 server.local:54998 157.55.117.16:www ESTABLISHED 3109/firefox
tcp 0 0 server.local:35751 aidps.msn.com:www ESTABLISHED 3109/firefox
tcp 0 0 localhost:mysql localhost:42536 ESTABLISHED 1216/mysqld
tcp 0 0 localhost:42536 localhost:mysql ESTABLISHED 1881/amavisd (ch1-a
tcp 0 0 server.local:60803 2.21.111.139:www ESTABLISHED 3109/firefox
tcp 0 0 server.local:48742 80-239-148-78.custo:www ESTABLISHED 3109/firefox
tcp 0 0 server.local:38850 muc03s02-in-f27.1e1:www ESTABLISHED 3109/firefox
tcp 0 0 server.local:57239 muc03s02-in-f25.1e1:www ESTABLISHED 3109/firefox
tcp 0 0 server.local:38850 muc03s02-in-f27.1e1:www ESTABLISHED 3109/firefox
tcp 0 0 server.local:43879 ec2-176-34-132-201.:www ESTABLISHED -
tcp 0 0 server.local:57239 muc03s02-in-f25.1e1:www ESTABLISHED 3109/firefox
tcp6 0 0 [::]op3 [::]:* LISTEN 2464/couriertcpd
tcp6 0 0 [::]:imap2 [::]:* LISTEN 2410/couriertcpd
tcp6 0 0 [::]:ftp [::]:* LISTEN 2625/pure-ftpd (SER
tcp6 0 0 [::]:domain [::]:* LISTEN 1692/named
tcp6 0 0 [::]:ssh [::]:* LISTEN 889/sshd
tcp6 0 0 ip6-localhost:ipp [::]:* LISTEN 1015/cupsd
tcp6 0 0 ip6-localhost:953 [::]:* LISTEN 1692/named
tcp6 0 0 [::]:imaps [::]:* LISTEN 2432/couriertcpd
tcp6 0 0 [::]op3s [::]:* LISTEN 2486/couriertcpd
tcp6 0 0 [::]:ldap [::]:* LISTEN 1944/slapd

and here is last part of errors asked, i did something in between so i probably changed from time to time:

Apr 11 18:05:12 server postfix/postqueue[2226]: warning: Mail system is down -- accessing queue directly
Apr 11 20:05:22 server authdaemond: modules="authpam", daemons=5
Apr 11 20:05:22 server authdaemond: Installing libauthpam
Apr 11 20:05:22 server authdaemond: Installation complete: authpam
Apr 11 20:05:25 server postfix/master[2600]: daemon started -- version 2.8.5, configuration /etc/postfix
Apr 11 20:05:25 server postfix/qmgr[2605]: 2185B6213D3: from=<root@server.home>, size=1027, nrcpt=1 (queue active)
Apr 11 20:05:25 server postfix/qmgr[2605]: 231B16213CA: from=<root@server.home>, size=1039, nrcpt=1 (queue active)
Apr 11 20:05:25 server postfix/pickup[2604]: 5D1B5620157: uid=0 from=<root>
Apr 11 20:05:25 server postfix/cleanup[2615]: 5D1B5620157: message-id=<20120411180525.5D1B5620157@server.home>
Apr 11 20:05:25 server postfix/qmgr[2605]: 5D1B5620157: from=<root@server.home>, size=819, nrcpt=1 (queue active)
Apr 11 20:05:25 server dovecot: lda: Fatal: Plugin 'sieve' not found from directory /usr/lib/dovecot/modules
Apr 11 20:05:25 server dovecot: lda: Fatal: Plugin 'sieve' not found from directory /usr/lib/dovecot/modules
Apr 11 20:05:26 server postfix/pipe[2621]: 231B16213CA: to=<testmail@mail.home>, relay=dovecot, delay=97508, delays=97507/0.26/0/0.47, dsn=4.3.0, status=deferred (temporary failure)
Apr 11 20:05:26 server postfix/pipe[2619]: 2185B6213D3: to=<test@mail.home>, relay=dovecot, delay=87383, delays=87382/0.51/0/0.5, dsn=4.3.0, status=deferred (temporary failure)
Apr 11 20:05:28 server in.imapproxyd[2718]: No syslog priority mask specified.
Apr 11 20:05:28 server in.imapproxyd[2718]: main(): SELECT caching is disabled
Apr 11 20:05:28 server in.imapproxyd[2718]: main(): Internal admin commands are disabled
Apr 11 20:05:28 server in.imapproxyd[2718]: main(): Allocating 3072 IMAP connection structures.
Apr 11 20:05:28 server in.imapproxyd[2718]: ServerInit(): Using '/var/log/imapproxy_protocol.log' for global protocol logging file.
Apr 11 20:05:28 server in.imapproxyd[2718]: ServerInit(): proxying to IMAP server 'localhost'.
Apr 11 20:05:28 server in.imapproxyd[2718]: ServerInit(): Proxying to IMAP port 143
Apr 11 20:05:28 server imapd: Connection, ip=[::ffff:127.0.0.1]
Apr 11 20:05:28 server imapd: Connection, ip=[::ffff:127.0.0.1]
Apr 11 20:05:28 server in.imapproxyd[2718]: main(): Binding to tcp *:1143
Apr 11 20:05:28 server in.imapproxyd[2718]: main(): Using global statistics file '/var/run/pimpstats'
Apr 11 20:05:28 server in.imapproxyd[2718]: Daemonize(): Configured to run in background mode.
Apr 11 20:05:28 server imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
Apr 11 20:05:28 server imapd: LOGOUT, ip=[::ffff:127.0.0.1], rcvd=24, sent=464
Apr 11 20:05:28 server in.imapproxyd[2723]: BecomeNonRoot(): Process will run as uid 65534 (nobody) and gid 65534 (nogroup).
Apr 11 20:05:28 server in.imapproxyd[2723]: BecomeNonRoot(): Process chrooted in /var/lib/imapproxy/chroot
Apr 11 20:05:28 server in.imapproxyd[2723]: main(): Launched ICC recycle thread with id 313906944
Apr 11 20:05:28 server in.imapproxyd[2723]: main(): imapproxy version 1.2.7 normal server startup.
Apr 11 20:05:28 server postfix/smtpd[2731]: cannot load Certificate Authority data: disabling TLS support
Apr 11 20:05:28 server postfix/smtpd[2731]: warning: TLS library problem: 2731:error:02001002:system library:fopen:No such file or directory:bss_file.c:169:fopen('/etc/ssl/certs/cacert.pem','r'):
Apr 11 20:05:28 server postfix/smtpd[2731]: warning: TLS library problem: 2731:error:2006D080:BIO routines:BIO_new_file:no such file:bss_file.c:172:
Apr 11 20:05:28 server postfix/smtpd[2731]: warning: TLS library problem: 2731:error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib:by_file.c:274:
Apr 11 20:05:28 server postfix/smtpd[2731]: connect from localhost[127.0.0.1]
Apr 11 20:05:28 server postfix/smtpd[2731]: AA8C06215B2: client=localhost[127.0.0.1]
Apr 11 20:05:28 server postfix/cleanup[2615]: AA8C06215B2: message-id=<20120411180525.5D1B5620157@server.home>
Apr 11 20:05:28 server postfix/qmgr[2605]: AA8C06215B2: from=<root@server.home>, size=1238, nrcpt=1 (queue active)
Apr 11 20:05:28 server amavis[1881]: (01881-01) Passed CLEAN, <root@server.home> -> <root@server.home>, Message-ID: <20120411180525.5D1B5620157@server.home>, mail_id: H9DrTQSCiMkd, Hits: 0.378, size: 819, queued_as: AA8C06215B2, 2895 ms
Apr 11 20:05:28 server postfix/smtp[2620]: 5D1B5620157: to=<root@server.home>, orig_to=<root>, relay=127.0.0.1[127.0.0.1]:10024, delay=17, delays=14/0.44/0.02/2.9, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as AA8C06215B2)
Apr 11 20:05:28 server postfix/qmgr[2605]: 5D1B5620157: removed
Apr 11 20:05:28 server postfix/local[2733]: AA8C06215B2: to=<root@server.home>, relay=local, delay=0.24, delays=0.14/0.03/0/0.07, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
Apr 11 20:05:28 server postfix/qmgr[2605]: AA8C06215B2: removed
Apr 11 20:10:02 server imapd: Connection, ip=[::ffff:127.0.0.1]
Apr 11 20:10:02 server imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
Apr 11 20:10:02 server pop3d: Connection, ip=[::ffff:127.0.0.1]
Apr 11 20:10:02 server pop3d: Disconnected, ip=[::ffff:127.0.0.1]
Apr 11 20:10:02 server postfix/smtpd[3464]: cannot load Certificate Authority data: disabling TLS support
Apr 11 20:10:02 server postfix/smtpd[3464]: warning: TLS library problem: 3464:error:02001002:system library:fopen:No such file or directory:bss_file.c:169:fopen('/etc/ssl/certs/cacert.pem','r'):
Apr 11 20:10:02 server postfix/smtpd[3464]: warning: TLS library problem: 3464:error:2006D080:BIO routines:BIO_new_file:no such file:bss_file.c:172:
Apr 11 20:10:02 server postfix/smtpd[3464]: warning: TLS library problem: 3464:error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib:by_file.c:274:
Apr 11 20:10:02 server postfix/smtpd[3464]: connect from localhost[127.0.0.1]
Apr 11 20:10:02 server postfix/smtpd[3464]: lost connection after CONNECT from localhost[127.0.0.1]
Apr 11 20:10:02 server postfix/smtpd[3464]: disconnect from localhost[127.0.0.1]
Apr 11 20:10:02 server postfix/pickup[2604]: CDF4A6215B2: uid=0 from=<root>
Apr 11 20:10:02 server postfix/cleanup[3486]: CDF4A6215B2: message-id=<20120411181002.CDF4A6215B2@server.home>
Apr 11 20:10:02 server postfix/qmgr[2605]: CDF4A6215B2: from=<root@server.home>, size=819, nrcpt=1 (queue active)
Apr 11 20:10:03 server postfix/smtpd[3490]: cannot load Certificate Authority data: disabling TLS support
Apr 11 20:10:03 server postfix/smtpd[3490]: warning: TLS library problem: 3490:error:02001002:system library:fopen:No such file or directory:bss_file.c:169:fopen('/etc/ssl/certs/cacert.pem','r'):
Apr 11 20:10:03 server postfix/smtpd[3490]: warning: TLS library problem: 3490:error:2006D080:BIO routines:BIO_new_file:no such file:bss_file.c:172:
Apr 11 20:10:03 server postfix/smtpd[3490]: warning: TLS library problem: 3490:error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib:by_file.c:274:
Apr 11 20:10:03 server postfix/smtpd[3490]: connect from localhost[127.0.0.1]
Apr 11 20:10:03 server postfix/smtpd[3490]: 0991C620157: client=localhost[127.0.0.1]
Apr 11 20:10:03 server postfix/cleanup[3486]: 0991C620157: message-id=<20120411181002.CDF4A6215B2@server.home>
Apr 11 20:10:03 server postfix/qmgr[2605]: 0991C620157: from=<root@server.home>, size=1238, nrcpt=1 (queue active)
Apr 11 20:10:03 server amavis[1882]: (01882-01) Passed CLEAN, <root@server.home> -> <root@server.home>, Message-ID: <20120411181002.CDF4A6215B2@server.home>, mail_id: Pd4lZCjUPla2, Hits: 0.378, size: 819, queued_as: 0991C620157, 212 ms
Apr 11 20:10:03 server postfix/smtp[3487]: CDF4A6215B2: to=<root@server.home>, orig_to=<root>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.4, delays=0.16/0.01/0.01/0.22, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 0991C620157)
Apr 11 20:10:03 server postfix/qmgr[2605]: CDF4A6215B2: removed
Apr 11 20:10:03 server postfix/local[3491]: 0991C620157: to=<root@server.home>, relay=local, delay=0.18, delays=0.07/0.03/0/0.07, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
Apr 11 20:10:03 server postfix/qmgr[2605]: 0991C620157: removed
Apr 11 20:10:28 server postfix/smtpd[2731]: timeout after END-OF-MESSAGE from localhost[127.0.0.1]
Apr 11 20:10:28 server postfix/smtpd[2731]: disconnect from localhost[127.0.0.1]

This is last excerpt after I boot the computer right now few minutes ago.

Thanks.
__________________
Ubuntu 11.10 (Oneiric Ocelot)
Reply With Quote
  #4  
Old 12th April 2012, 22:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

Courier is running, but you have Dovecot errors in your mail log. This looks very strange. I suggest you set up the system again and try to follow the Perfect Server guide as close as possible. Please do not install anything that is not mentioned in the guide.
__________________
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
  #5  
Old 12th April 2012, 22:33
Alexhor Alexhor is offline
Junior Member
 
Join Date: Apr 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Yes, I was thinking about that. Because after first few failures I was following different advices on the internet without clear undertsanding, which (I guess) makes things even worse.
So, rollback... :/ Thanks to confirm tha I messed up perfect server.
__________________
Ubuntu 11.10 (Oneiric Ocelot)
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
How cai remove amavis from postfix ? gabrix Server Operation 16 2nd October 2012 09:58
mail recipient linux_red Installation/Configuration 6 9th March 2012 14:24
installing squirrelmail on Debian with ispconfig3 saco721 Installation/Configuration 18 1st April 2011 17:57
Virtual Users+Postfix+Courier+CentOS problem telnet localhost 25 stinson HOWTO-Related Questions 11 5th February 2011 13:57
dovecot: lda: Fatal: Unknown user dpicella Installation/Configuration 1 22nd August 2010 02:59


All times are GMT +2. The time now is 19:57.


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