openSuse 11.2 + SquirrelMail

I succesfully configured Apache server + sql+php+phpMyadmin+SquirrelMail.
SquirrelMail version: 1.4.20-RC2
Config file version: 1.4.0
Config file last modified: 18 November 2009 20:06:57
Checking PHP configuration…
PHP version 5.3.0 OK.
display_errors:
error_reporting: 22527
variables_order OK: GPCS.
PHP extensions OK. Dynamic loading is disabled.
Checking paths…
Data dir OK.
Attachment dir OK.
Plugins are not enabled in config.
Themes OK.
Default language OK.
Base URL detected as: http://127.0.0.2/sqmail/src (location base autodetected)
Checking outgoing mail service…
SMTP server OK (220 server1.ipservices.ro ESMTP Postfix)
Checking IMAP service…
IMAP server ready (* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION] Courier-IMAP ready. Copyright 1998-2008 Double Precision, Inc. See COPYING for distribution information.)
Capabilities: * CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
Checking internationalization (i18n) settings…
gettext - Gettext functions are unavailable. SquirrelMail will use slower internal gettext functions.
mbstring - Mbstring functions are available.
recode - Recode functions are unavailable.
iconv - Iconv functions are available.
timezone - Webmail users can change their time zone settings.
Checking database functions…
not using database functionality.

Congratulations, your SquirrelMail setup looks fine to me!

i can login and i can’t send e-mails, but for some reasons my e-mails never reach the destination and i get no error whatsoever. Can someone please help ?

Look in /var/log/mail to see what postfix did with your outgoing mail. Remember that many ISPs block end users from sending outgoing emails without going through their relay.

Nov 19 15:21:24 linux-cohg postfix/error[6921]: 810A518A17: to=<xxxxx@yahoo.com>, relay=none, delay=153296, delays=153296/0.23/0/0.06, dsn=4.3.5, status=deferred (delivery temporarily suspended: mail for 127.0.0.1 loops back to myself)

…meaning ? :slight_smile:

What is the output of the command “mailq”?

What is the output of the command “dig yahoo.com mx”?

If the program dig is not found, install the bind-utils package.

Does your ISP require you to use their mail relay? If you don’t know, time for you to find out.

mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
16BC91863A 2884 Tue Nov 17 22:02:00 MAILER-DAEMON
(mail for 127.0.0.1 loops back to myself)
barsoianu@ipservicess.ro

32A6818D17 658 Wed Nov 18 20:07:46 barsoianu@ipservicess.ro
(mail for 127.0.0.1 loops back to myself)
tigrishor@hotmail.com
xp_radu@yahoo.com

35F8018D97 3232 Wed Nov 18 20:59:49 MAILER-DAEMON
(mail for 127.0.0.1 loops back to myself)
barsoianu@ipservicess.ro

E5C0018D9B 2838 Wed Nov 18 22:09:49 MAILER-DAEMON
(mail for 127.0.0.1 loops back to myself)
barsoianu@ipservicess.ro

44665188C2 661 Thu Nov 19 15:33:32 barsoianu@ipservicess.ro
(mail for 127.0.0.1 loops back to myself)
tigrishor@hotmail.com
xp_radu@yahoo.com

42D7D18D86 673 Wed Nov 18 19:33:02 barsoianu@ipservicess.ro
(delivery temporarily suspended: mail for 127.0.0.1 loops back to myself)
tigrishor@hotmail.com
xp_radu@yahoo.com

4A3C818D8E 659 Wed Nov 18 20:32:47 barsoianu@ipservicess.ro
(delivery temporarily suspended: mail for 127.0.0.1 loops back to myself)
tigrishor@hotmail.com
xp_radu@yahoo.com

BDEB318D96 652 Wed Nov 18 20:53:17 barsoianu@ipservicess.ro
(delivery temporarily suspended: mail for 127.0.0.1 loops back to myself)
xp_radu@yahoo.com

BF03D18D7D 2884 Wed Nov 18 20:19:49 MAILER-DAEMON
(delivery temporarily suspended: mail for 127.0.0.1 loops back to myself)
barsoianu@ipservicess.ro

5A9CA18A25 735 Wed Nov 18 19:21:52 barsoianu@ipservicess.ro
(delivery temporarily suspended: mail for 127.0.0.1 loops back to myself)
tigrishor@hotmail.com
xp_radu@yahoo.com

0AEF018D99 3080 Wed Nov 18 21:29:50 MAILER-DAEMON
(delivery temporarily suspended: mail for 127.0.0.1 loops back to myself)
barsoianu@ipservicess.ro

0C71118DA6 660 Thu Nov 19 14:13:17 barsoianu@ipservicess.ro
(delivery temporarily suspended: mail for 127.0.0.1 loops back to myself)
tigrishor@hotmail.com
xp_radu@yahoo.com

C81A118D9D 3170 Thu Nov 19 15:31:24 MAILER-DAEMON
(mail for 127.0.0.1 loops back to myself)
barsoianu@ipservicess.ro

C4CD718D98 3168 Wed Nov 18 21:24:49 MAILER-DAEMON
(delivery temporarily suspended: mail for 127.0.0.1 loops back to myself)
barsoianu@ipservicess.ro

DB421188B5 697 Wed Nov 18 19:10:42 barsoianu@ipservicess.ro
(delivery temporarily suspended: mail for 127.0.0.1 loops back to myself)
xp_radu@yahoo.com

7590918D9A 3168 Wed Nov 18 21:49:49 MAILER-DAEMON
(delivery temporarily suspended: mail for 127.0.0.1 loops back to myself)
barsoianu@ipservicess.ro

810A518A17 704 Tue Nov 17 20:46:28 barsoianu@ipservicess.ro
(delivery temporarily suspended: mail for 127.0.0.1 loops back to myself)
xp_radu@yahoo.com

linux-cohg:/home/barsoianu # dig yahoo.com mx

; <<>> DiG 9.6.1-P1 <<>> yahoo.com mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30175
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;yahoo.com. IN MX

;; ANSWER SECTION:
yahoo.com. 1393 IN MX 1 f.mx.mail.yahoo.com.
yahoo.com. 1393 IN MX 1 g.mx.mail.yahoo.com.
yahoo.com. 1393 IN MX 1 a.mx.mail.yahoo.com.
yahoo.com. 1393 IN MX 1 b.mx.mail.yahoo.com.
yahoo.com. 1393 IN MX 1 c.mx.mail.yahoo.com.
yahoo.com. 1393 IN MX 1 e.mx.mail.yahoo.com.

;; Query time: 6 msec
;; SERVER: 192.168.2.1#53(192.168.2.1)
;; WHEN: Thu Nov 19 15:42:15 2009
;; MSG SIZE rcvd: 143

what next ? :slight_smile:

See what you get when you do “dig f.mx.mail.yahoo.com”. I have a feeling that your ISP has modified their DNS server to always return 127.0.0.1 when you ask for the MX of any external domain, as an anti-spam-virus measure. Pretty clever I must say.

I have a strong suspicion that you are meant to use your ISP’s relayhost. This will be the SMTP server you would be asked to use for mail programs like outlook, thunderbird, etc. Set POSTFIX_RELAYHOST to this in YaST postfix config and restart postfix.

I can’t find postfix config under yast. And is there no way i can do this without using my isp’s relay server ?

Install the yast2-mail package and you should be able to admin the mail server from YaST.

ISPs don’t want people bypassing their relay because that’s what spambots do. By making people go through their relay they can at least detect and shutdown misbehaving customers. Some even go further and block connections from client IPs to outside IPs on port 25.

installed the package tryied to configure the mail server and now i get another error. I can’t start the LDAP server,the only error i get is “A problem occured while connecting to the LDAP server”, if i press “show details” i get the “init” under the error.

You don’t need a LDAP server to be running to use postfix. Ignore all the LDAP related stuff.

I restarted everything from scratch and i did everything step by step i found here : The Perfect Server - OpenSUSE 11.2 x86_64 [ISPConfig 3] - Page 5 | HowtoForge - Linux Howtos and Tutorials
Everything works as usual, only this this time i can’t login into my SquirrelMail, it saz "ERROR: Connection dropped by IMAP server.
"
Can i have some last advice as how to get in and maybe, just maybe this time it will work ?

With my linux user name and password squirrelmail gives “Error: Unknown user or password incorrect.”. If i use a user name i created with ISPConfig for my Mailbox the error is “ERROR: Connection dropped by IMAP server.”. in /var/log/mail.err i found those lines :

“Nov 20 20:42:26 linux-4zwu postfix/master[7422]: nss_ldap: could not search LDAP server - Server is unavailable
Nov 20 20:42:26 linux-4zwu postfix/master[7422]: nss_ldap: could not search LDAP server - Server is unavailable
Nov 20 20:42:26 linux-4zwu postfix/master[7422]: nss_ldap: could not search LDAP server - Server is unavailable
Nov 20 20:42:26 linux-4zwu postfix/master[7422]: nss_ldap: could not search LDAP server - Server is unavailable
Nov 20 20:43:28 linux-4zwu imapd: b.radu@raduhost.com: No such file or directory”

I don’t know, somehow you enabled LDAP authentication for postfix. It’s not required to use LDAP for postfix.

so is there something i can do now to be able to login into my e-mail account ?

Fix the configuration not to require login to send email, LDAP or otherwise. I suspect that HOWTO is teaching you to build a secure postfix server that would be used by road warriors. That’s the problem with following HOWTOs without distinguishing what is useful to you and what is not.