On Tuesday 29 August 2006 12:20, Tomas Kuliavas wrote:
> >> > Hi,
> >> >
> >> > I am searching around to figure out why squirrelmail is sending out
> >>
> >> all
> >>
> >> > my mail in double ( twice ). The strange part is that this occures
> >>
> >> only
> >>
> >> > in squirrelmail. I have tested with squirrelmail 1.4.7, and 1.4.8. I
> >>
> >> have
> >>
> >> > disabled anti-spam/anti-virus so i can pinpoint the problem and it's
> >>
> >> now
> >>
> >> > down
> >> > to squirellmail and my configuration.
> >> >
> >> >>From standard email clients mail gets routed proprely only once. From
> >>
> >> the
> >>
> >> > shell samething everything is alright.
> >> >
> >> > I created a small php script that sends an email and i hosted it into
> >> > apache's
> >> > document root. I executed it via the shell, everything is ok, via a
> >> > browser,
> >> > i got my test email only once so everything is fine there.
> >> >
> >> > What i see in my logs is 2 smtp connections when i click the "send"
> >> > button this is why i am thinking about a squirrelmail configuration
> >> > error.
> >> >
> >> > I have a setup with postfixadmin and mysql and squirrelmail using
> >>
> >> virtual
> >>
> >> > domain and some kickass ldap authentication. But his doesn't affect
> >>
> >> much
> >>
> >> > outgoing mail :)
> >> >
> >> >
> >> > Has anyone ever had this problem ?
> >> > I will be around all day if you want to see parts of my configuratio=
n.
> >>
> >> 1. SquirrelMail does not use PHP mail() function. If you want to test
> >> email sending "SquirrelMail way", feed email with popen() to
> >> /usr/sbin/sendmail or with fsockopen() to smtp server.
> >
> > ok so squirrelmail sends it just like i do in the shell ( sort of ) i do
> > echo "test" | mail -s "test" user@...
>
> SquirrelMail uses more options and runs within restrictions placed on
> webserver user and PHP interpreter. It is not same thing as executing mail
> command in shell. I think, you are running mail command from admin's
> account or account with valid shell and environment is not chrooted.
> Webserver's user account is limited and in some cases chrooted.
>
> >> 2. Please provide information about webserver OS, PHP safe_mode setting
> >> and disabled PHP functions.
> >
> > I use freebsd 6.x with php 5.1.4
> > safe_mode =3D Off
> > disable_functions =3D
>
> If you use /usr/sbin/sendmail in SquirrelMail configuration, try switching
> to smtp or check your mailwrapper configuration. Some sendmail wrappers
> are not fully compatible with sendmail.org's sendmail. SquirrelMail 1.4.8
> allows to control options used in sendmail command.
>
> If you use SMTP, check your smtp server.
any hints ?
> If you use Internet Explorer 7, test other browser.
I didn't run tests from internet explorer 7 as it doesn't have a client for=
=20
linux yet. I use firefox.
I am sending mail via smtp to 127.0.0.1 on port 25
Here is my config.php extract.
$useSendmail =3D false;
$smtpServerAddress =3D '127.0.0.1';
$smtpPort =3D 25;
$sendmail_path =3D '/usr/sbin/sendmail';
$sendmail_args =3D '-i -t';
So i guess it's going thru my smtp server.
But this still doesn't explain why i get 2 smtp connections in my logs.
I hope this can help i have an extract from my log file and another one from
the 2 emails i receive in my maildir after this whole process.
Aug 29 13:10:35 estafette postfix/smtpd[6808]: connect from=20
localhost.etu.cegep-ste-foy.qc.ca[127.0.0.1]
Aug 29 13:10:36 estafette postfix/smtpd[6808]: 6DA99F96E:=20
client=3Dlocalhost.etu.cegep-ste-foy.qc.ca[127.0.0.1]
Aug 29 13:10:36 estafette postfix/cleanup[6829]: 6DA99F96E:=20
message-id=3D<46632.199.202.105.98.1156871436.squirrel@...=
=2Eca>
Aug 29 13:10:36 estafette postfix/qmgr[4857]: 6DA99F96E:=20
from=3D<a00a1400@...>, size=3D869, nrcpt=3D1 (queue act=
ive)
Aug 29 13:10:36 estafette postfix/smtpd[6808]: disconnect from=20
localhost.etu.cegep-ste-foy.qc.ca[127.0.0.1]
Aug 29 13:10:36 estafette clamsmtpd: 101AB5: accepted connection from:=20
127.0.0.1
Aug 29 13:10:36 estafette postfix/smtpd[6832]: connect from=20
localhost.etu.cegep-ste-foy.qc.ca[127.0.0.1]
Aug 29 13:10:36 estafette authdaemond: Authenticated: sysusername=3D<null>,=
=20
sysuserid=3D499, sysgroupid=3D499, homedir=3D/var/courrier/a00a1400/Maildir=
/,=20
address=3Da00a1400, fullname=3Da00a1400, maildir=3D/var/courrier/a00a1400/M=
aildir/,=20
quota=3D<null>, options=3D<null>
Aug 29 13:10:36 estafette authdaemond: Authenticated: clearpasswd=3Dxxxxxx,=
=20
passwd=3D<null>
Aug 29 13:10:36 estafette imapd: LOGIN, user=3Da00a1400, ip=3D[::ffff:127.0=
=2E0.1],=20
protocol=3DIMAP
Aug 29 13:10:36 estafette postfix/smtpd[6832]: B243DF96F:=20
client=3Dlocalhost.etu.cegep-ste-foy.qc.ca[127.0.0.1]
Aug 29 13:10:36 estafette postfix/cleanup[6829]: B243DF96F:=20
message-id=3D<46632.199.202.105.98.1156871436.squirrel@...=
=2Eca>
Aug 29 13:10:36 estafette postfix/qmgr[4857]: B243DF96F:=20
from=3D<a00a1400@...>, size=3D1152, nrcpt=3D1 (queue ac=
tive)
Aug 29 13:10:36 estafette postfix/smtp[6830]: 6DA99F96E:=20
to=3D<a00a1400@...>, relay=3D127.0.0.1[127.0.0.1]:10025=
,=20
delay=3D1.5, delays=3D1.2/0.03/0.13/0.13, dsn=3D2.0.0, status=3Dsent (250 2=
=2E0.0 Ok:=20
queued as B243DF96F)
Aug 29 13:10:36 estafette clamsmtpd: 101AB5:=20
from=3Da00a1400@..., to=3Da00a1400@...=
=2Eca,=20
status=3DCLEAN
Aug 29 13:10:36 estafette postfix/pickup[6741]: D2317F971: uid=3D499=20
from=3D<a00a1400>
Aug 29 13:10:36 estafette imapd: LOGOUT, user=3Da00a1400, ip=3D[::ffff:127.=
0.0.1],=20
headers=3D0, body=3D0, rcvd=3D716, sent=3D206, time=3D0
Aug 29 13:10:36 estafette postfix/qmgr[4857]: 6DA99F96E: removed
Aug 29 13:10:36 estafette postfix/cleanup[6829]: D2317F971:=20
message-id=3D<46632.199.202.105.98.1156871436.squirrel@...=
=2Eca>
Aug 29 13:10:36 estafette postfix/smtpd[6832]: disconnect from=20
localhost.etu.cegep-ste-foy.qc.ca[127.0.0.1]
Aug 29 13:10:36 estafette postfix/qmgr[4857]: D2317F971:=20
from=3D<a00a1400@...>, size=3D780, nrcpt=3D1 (queue act=
ive)
Aug 29 13:10:36 estafette postfix/smtpd[6832]: connect from=20
localhost.etu.cegep-ste-foy.qc.ca[127.0.0.1]
Aug 29 13:10:36 estafette clamsmtpd: 101AB6: accepted connection from:=20
127.0.0.1
Aug 29 13:10:37 estafette postfix/smtpd[6832]: 00F9EF972:=20
client=3Dlocalhost.etu.cegep-ste-foy.qc.ca[127.0.0.1]
Aug 29 13:10:37 estafette postfix/cleanup[6836]: 00F9EF972:=20
message-id=3D<46632.199.202.105.98.1156871436.squirrel@...=
=2Eca>
Aug 29 13:10:37 estafette postfix/qmgr[4857]: 00F9EF972:=20
from=3D<a00a1400@...>, size=3D1063, nrcpt=3D1 (queue ac=
tive)
Aug 29 13:10:37 estafette postfix/smtp[6830]: D2317F971:=20
to=3D<a00a1400@...>, relay=3D127.0.0.1[127.0.0.1]:10025=
,=20
delay=3D0.29, delays=3D0.05/0.01/0.11/0.12, dsn=3D2.0.0, status=3Dsent (250=
2.0.0 Ok:=20
queued as 00F9EF972)
Aug 29 13:10:37 estafette clamsmtpd: 101AB6:=20
from=3Da00a1400@..., to=3Da00a1400@...=
=2Eca,=20
status=3DCLEAN
Aug 29 13:10:37 estafette postfix/qmgr[4857]: D2317F971: removed
Aug 29 13:10:37 estafette postfix/smtpd[6832]: disconnect from=20
localhost.etu.cegep-ste-foy.qc.ca[127.0.0.1]
Aug 29 13:10:37 estafette authdaemond: Authenticated: sysusername=3D<null>,=
=20
sysuserid=3D499, sysgroupid=3D499, homedir=3D/var/courrier/a00a1400/Maildir=
/,=20
address=3Da00a1400, fullname=3Da00a1400, maildir=3D/var/courrier/a00a1400/M=
aildir/,=20
quota=3D<null>, options=3D<null>
Aug 29 13:10:37 estafette authdaemond: Authenticated: clearpasswd=3Dxxxxxx,=
=20
passwd=3D<null>
Aug 29 13:10:37 estafette imapd: LOGIN, user=3Da00a1400, ip=3D[::ffff:127.0=
=2E0.1],=20
protocol=3DIMAP
Aug 29 13:10:37 estafette imapd: LOGOUT, user=3Da00a1400, ip=3D[::ffff:127.=
0.0.1],=20
headers=3D0, body=3D0, rcvd=3D119, sent=3D900, time=3D0
Aug 29 13:10:38 estafette postfix/virtual[6837]: B243DF96F:=20
to=3D<a00a1400@...>, relay=3Dvirtual, delay=3D1.8,=20
delays=3D0.12/0.05/0/1.6, dsn=3D2.0.0, status=3Dsent (delivered to maildir)
Aug 29 13:10:38 estafette postfix/qmgr[4857]: B243DF96F: removed
Aug 29 13:10:38 estafette postfix/virtual[6838]: 00F9EF972:=20
to=3D<a00a1400@...>, relay=3Dvirtual, delay=3D1.7,=20
delays=3D0.12/0.02/0/1.6, dsn=3D2.0.0, status=3Dsent (delivered to maildir)
Aug 29 13:10:38 estafette postfix/qmgr[4857]: 00F9EF972: removed
Return-Path: <a00a1400@...>
X-Original-To: a00a1400@...
Delivered-To: a00a1400@...
Received: from estafette.cegep-ste-foy.qc.ca=20
(localhost.etu.cegep-ste-foy.qc.ca [127.0.0.1])
by estafette.cegep-ste-foy.qc.ca (Postfix) with ESMTP id B243DF96F
for <a00a1400@...>; Tue, 29 Aug 2006 13:10:36 -040=
0=20
(EDT)
Received: from etu.cegep-ste-foy.qc.ca (localhost.etu.cegep-ste-foy.qc.ca=20
[127.0.0.1])
by estafette.cegep-ste-foy.qc.ca (Postfix) with ESMTP id 6DA99F96E
for <a00a1400@...>; Tue, 29 Aug 2006 13:10:35 -040=
0=20
(EDT)
Received: from 199.202.105.98
(SquirrelMail authenticated user a00a1400)
by etu.cegep-ste-foy.qc.ca with HTTP;
Tue, 29 Aug 2006 13:10:36 -0400 (EDT)
Message-ID: <46632.199.202.105.98.1156871436.squirrel@....=
ca>
Date: Tue, 29 Aug 2006 13:10:36 -0400 (EDT)
Subject: testttes sdkfjkfjsdlkfjsdlfjsdf
=46rom: a00a1400@...
To: a00a1400@...
User-Agent: SquirrelMail/1.4.8
MIME-Version: 1.0
Content-Type: text/plain;charset=3Diso-8859-1
Content-Transfer-Encoding: 8bit
X-Priority: 3 (Normal)
Importance: Normal
X-Virus-Scanned: ClamAV using ClamSMTP
Return-Path: <a00a1400@...>
X-Original-To: a00a1400@...
Delivered-To: a00a1400@...
Received: from estafette.cegep-ste-foy.qc.ca=20
(localhost.etu.cegep-ste-foy.qc.ca [127.0.0.1])
by estafette.cegep-ste-foy.qc.ca (Postfix) with ESMTP id 00F9EF972
for <a00a1400@...>; Tue, 29 Aug 2006 13:10:37 -040=
0=20
(EDT)
Received: by estafette.cegep-ste-foy.qc.ca (Postfix, from userid 499)
id D2317F971; Tue, 29 Aug 2006 13:10:36 -0400 (EDT)
X-IMAP-Sender: a00a1400
Received: from 199.202.105.98
(SquirrelMail authenticated user a00a1400)
by etu.cegep-ste-foy.qc.ca with HTTP;
Tue, 29 Aug 2006 13:10:36 -0400 (EDT)
Message-ID: <46632.199.202.105.98.1156871436.squirrel@....=
ca>
Date: Tue, 29 Aug 2006 13:10:36 -0400 (EDT)
Subject: testttes sdkfjkfjsdlkfjsdlfjsdf
=46rom: a00a1400@...
To: a00a1400@...
User-Agent: SquirrelMail/1.4.8
MIME-Version: 1.0
Content-Type: text/plain;charset=3Diso-8859-1
Content-Transfer-Encoding: 8bit
X-Priority: 3 (Normal)
Importance: Normal
X-Virus-Scanned: ClamAV using ClamSMTP
=2D-=20
Charles Lacroix, Administrateur UNIX.
Service des t=E9l=E9communications et des technologies
C=E9gep de Sainte-Foy
(418) 659-6600 # 4266
|