> 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. >... First email headers show delivery through SMTP ---- 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) ---- Second one is delivered by UID=499 ---- Received: by estafette.cegep-ste-foy.qc.ca (Postfix, from userid 499) id D2317F971; Tue, 29 Aug 2006 13:10:36 -0400 (EDT) ---- Have you enabled OUTBOX setting in courier imapd configuration? Is it set to .Sent? -- Tomas ------------------------------------------------------------------------- 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