Re: Problem sending mail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 configuration.
> >>
> >> 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@domain
>
> 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 = Off
> > disable_functions =
>
> 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 
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            = false;
$smtpServerAddress      = '127.0.0.1';
$smtpPort               = 25;
$sendmail_path          = '/usr/sbin/sendmail';
$sendmail_args          = '-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 
localhost.etu.cegep-ste-foy.qc.ca[127.0.0.1]
Aug 29 13:10:36 estafette postfix/smtpd[6808]: 6DA99F96E: 
client=localhost.etu.cegep-ste-foy.qc.ca[127.0.0.1]
Aug 29 13:10:36 estafette postfix/cleanup[6829]: 6DA99F96E: 
message-id=<46632.199.202.105.98.1156871436.squirrel@xxxxxxxxxxxxxxxxxxxxxxx>
Aug 29 13:10:36 estafette postfix/qmgr[4857]: 6DA99F96E: 
from=<a00a1400@xxxxxxxxxxxxxxxxxxxxxxx>, size=869, nrcpt=1 (queue active)
Aug 29 13:10:36 estafette postfix/smtpd[6808]: disconnect from 
localhost.etu.cegep-ste-foy.qc.ca[127.0.0.1]
Aug 29 13:10:36 estafette clamsmtpd: 101AB5: accepted connection from: 
127.0.0.1
Aug 29 13:10:36 estafette postfix/smtpd[6832]: connect from 
localhost.etu.cegep-ste-foy.qc.ca[127.0.0.1]
Aug 29 13:10:36 estafette authdaemond: Authenticated: sysusername=<null>, 
sysuserid=499, sysgroupid=499, homedir=/var/courrier/a00a1400/Maildir/, 
address=a00a1400, fullname=a00a1400, maildir=/var/courrier/a00a1400/Maildir/, 
quota=<null>, options=<null>
Aug 29 13:10:36 estafette authdaemond: Authenticated: clearpasswd=xxxxxx, 
passwd=<null>
Aug 29 13:10:36 estafette imapd: LOGIN, user=a00a1400, ip=[::ffff:127.0.0.1], 
protocol=IMAP
Aug 29 13:10:36 estafette postfix/smtpd[6832]: B243DF96F: 
client=localhost.etu.cegep-ste-foy.qc.ca[127.0.0.1]
Aug 29 13:10:36 estafette postfix/cleanup[6829]: B243DF96F: 
message-id=<46632.199.202.105.98.1156871436.squirrel@xxxxxxxxxxxxxxxxxxxxxxx>
Aug 29 13:10:36 estafette postfix/qmgr[4857]: B243DF96F: 
from=<a00a1400@xxxxxxxxxxxxxxxxxxxxxxx>, size=1152, nrcpt=1 (queue active)
Aug 29 13:10:36 estafette postfix/smtp[6830]: 6DA99F96E: 
to=<a00a1400@xxxxxxxxxxxxxxxxxxxxxxx>, relay=127.0.0.1[127.0.0.1]:10025, 
delay=1.5, delays=1.2/0.03/0.13/0.13, dsn=2.0.0, status=sent (250 2.0.0 Ok: 
queued as B243DF96F)
Aug 29 13:10:36 estafette clamsmtpd: 101AB5: 
from=a00a1400@xxxxxxxxxxxxxxxxxxxxxxx, to=a00a1400@xxxxxxxxxxxxxxxxxxxxxxx, 
status=CLEAN
Aug 29 13:10:36 estafette postfix/pickup[6741]: D2317F971: uid=499 
from=<a00a1400>
Aug 29 13:10:36 estafette imapd: LOGOUT, user=a00a1400, ip=[::ffff:127.0.0.1], 
headers=0, body=0, rcvd=716, sent=206, time=0
Aug 29 13:10:36 estafette postfix/qmgr[4857]: 6DA99F96E: removed
Aug 29 13:10:36 estafette postfix/cleanup[6829]: D2317F971: 
message-id=<46632.199.202.105.98.1156871436.squirrel@xxxxxxxxxxxxxxxxxxxxxxx>
Aug 29 13:10:36 estafette postfix/smtpd[6832]: disconnect from 
localhost.etu.cegep-ste-foy.qc.ca[127.0.0.1]
Aug 29 13:10:36 estafette postfix/qmgr[4857]: D2317F971: 
from=<a00a1400@xxxxxxxxxxxxxxxxxxxxxxx>, size=780, nrcpt=1 (queue active)
Aug 29 13:10:36 estafette postfix/smtpd[6832]: connect from 
localhost.etu.cegep-ste-foy.qc.ca[127.0.0.1]
Aug 29 13:10:36 estafette clamsmtpd: 101AB6: accepted connection from: 
127.0.0.1
Aug 29 13:10:37 estafette postfix/smtpd[6832]: 00F9EF972: 
client=localhost.etu.cegep-ste-foy.qc.ca[127.0.0.1]
Aug 29 13:10:37 estafette postfix/cleanup[6836]: 00F9EF972: 
message-id=<46632.199.202.105.98.1156871436.squirrel@xxxxxxxxxxxxxxxxxxxxxxx>
Aug 29 13:10:37 estafette postfix/qmgr[4857]: 00F9EF972: 
from=<a00a1400@xxxxxxxxxxxxxxxxxxxxxxx>, size=1063, nrcpt=1 (queue active)
Aug 29 13:10:37 estafette postfix/smtp[6830]: D2317F971: 
to=<a00a1400@xxxxxxxxxxxxxxxxxxxxxxx>, relay=127.0.0.1[127.0.0.1]:10025, 
delay=0.29, delays=0.05/0.01/0.11/0.12, dsn=2.0.0, status=sent (250 2.0.0 Ok: 
queued as 00F9EF972)
Aug 29 13:10:37 estafette clamsmtpd: 101AB6: 
from=a00a1400@xxxxxxxxxxxxxxxxxxxxxxx, to=a00a1400@xxxxxxxxxxxxxxxxxxxxxxx, 
status=CLEAN
Aug 29 13:10:37 estafette postfix/qmgr[4857]: D2317F971: removed
Aug 29 13:10:37 estafette postfix/smtpd[6832]: disconnect from 
localhost.etu.cegep-ste-foy.qc.ca[127.0.0.1]
Aug 29 13:10:37 estafette authdaemond: Authenticated: sysusername=<null>, 
sysuserid=499, sysgroupid=499, homedir=/var/courrier/a00a1400/Maildir/, 
address=a00a1400, fullname=a00a1400, maildir=/var/courrier/a00a1400/Maildir/, 
quota=<null>, options=<null>
Aug 29 13:10:37 estafette authdaemond: Authenticated: clearpasswd=xxxxxx, 
passwd=<null>
Aug 29 13:10:37 estafette imapd: LOGIN, user=a00a1400, ip=[::ffff:127.0.0.1], 
protocol=IMAP
Aug 29 13:10:37 estafette imapd: LOGOUT, user=a00a1400, ip=[::ffff:127.0.0.1], 
headers=0, body=0, rcvd=119, sent=900, time=0
Aug 29 13:10:38 estafette postfix/virtual[6837]: B243DF96F: 
to=<a00a1400@xxxxxxxxxxxxxxxxxxxxxxx>, relay=virtual, delay=1.8, 
delays=0.12/0.05/0/1.6, dsn=2.0.0, status=sent (delivered to maildir)
Aug 29 13:10:38 estafette postfix/qmgr[4857]: B243DF96F: removed
Aug 29 13:10:38 estafette postfix/virtual[6838]: 00F9EF972: 
to=<a00a1400@xxxxxxxxxxxxxxxxxxxxxxx>, relay=virtual, delay=1.7, 
delays=0.12/0.02/0/1.6, dsn=2.0.0, status=sent (delivered to maildir)
Aug 29 13:10:38 estafette postfix/qmgr[4857]: 00F9EF972: removed




Return-Path: <a00a1400@xxxxxxxxxxxxxxxxxxxxxxx>
X-Original-To: a00a1400@xxxxxxxxxxxxxxxxxxxxxxx
Delivered-To: a00a1400@xxxxxxxxxxxxxxxxxxxxxxx
Received: from estafette.cegep-ste-foy.qc.ca 
(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@xxxxxxxxxxxxxxxxxxxxxxx>; Tue, 29 Aug 2006 13:10:36 -0400 
(EDT)
Received: from etu.cegep-ste-foy.qc.ca (localhost.etu.cegep-ste-foy.qc.ca 
[127.0.0.1])
     by estafette.cegep-ste-foy.qc.ca (Postfix) with ESMTP id 6DA99F96E
     for <a00a1400@xxxxxxxxxxxxxxxxxxxxxxx>; Tue, 29 Aug 2006 13:10:35 -0400 
(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@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 29 Aug 2006 13:10:36 -0400 (EDT)
Subject: testttes sdkfjkfjsdlkfjsdlfjsdf
From: a00a1400@xxxxxxxxxxxxxxxxxxxxxxx
To: a00a1400@xxxxxxxxxxxxxxxxxxxxxxx
User-Agent: SquirrelMail/1.4.8
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Priority: 3 (Normal)
Importance: Normal
X-Virus-Scanned: ClamAV using ClamSMTP



Return-Path: <a00a1400@xxxxxxxxxxxxxxxxxxxxxxx>
X-Original-To: a00a1400@xxxxxxxxxxxxxxxxxxxxxxx
Delivered-To: a00a1400@xxxxxxxxxxxxxxxxxxxxxxx
Received: from estafette.cegep-ste-foy.qc.ca 
(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@xxxxxxxxxxxxxxxxxxxxxxx>; Tue, 29 Aug 2006 13:10:37 -0400 
(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@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 29 Aug 2006 13:10:36 -0400 (EDT)
Subject: testttes sdkfjkfjsdlkfjsdlfjsdf
From: a00a1400@xxxxxxxxxxxxxxxxxxxxxxx
To: a00a1400@xxxxxxxxxxxxxxxxxxxxxxx
User-Agent: SquirrelMail/1.4.8
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Priority: 3 (Normal)
Importance: Normal
X-Virus-Scanned: ClamAV using ClamSMTP



-- 
Charles Lacroix, Administrateur UNIX.
Service des télécommunications et des technologies
Cégep de Sainte-Foy
(418) 659-6600 # 4266

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
--
squirrelmail-users mailing list
Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux