Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 22nd November 2006, 05:02
antoinel12 antoinel12 is offline
Junior Member
 
Join Date: Oct 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default mail() don't work, The Perfect Setup Ubuntu 6.10

Hello,

I recently installed my server. It run fine except for the mail sending. My PHP scripts can't send mail with the function mail(). In phpMyVisites I can see that the function is activated on the server but not seems to work...
Reply With Quote
Sponsored Links
  #2  
Old 22nd November 2006, 11:56
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,651 Times in 4,461 Posts
Default

Which messages do you get in the mail.log when you send mail?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 22nd November 2006, 14:10
antoinel12 antoinel12 is offline
Junior Member
 
Join Date: Oct 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

where is that file?
Reply With Quote
  #4  
Old 23rd November 2006, 01:16
antoinel12 antoinel12 is offline
Junior Member
 
Join Date: Oct 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok, I've got it, I'll past you in a next post what is in my log...
Reply With Quote
  #5  
Old 23rd November 2006, 01:44
antoinel12 antoinel12 is offline
Junior Member
 
Join Date: Oct 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is what I see in pico...
Quote:
Nov 22 18:40:03 serveur postfix/pickup[3692]: BF25C1781FA: uid=0 from=<root>
Nov 22 18:40:03 serveur postfix/cleanup[4277]: BF25C1781FA: message-id=<20061122$
Nov 22 18:40:03 serveur postfix/qmgr[18902]: BF25C1781FA: from=<root@serveur.ant$
Nov 22 18:40:03 serveur postfix/local[4279]: BF25C1781FA: to=<administrateur@ser$
Nov 22 18:40:03 serveur postfix/qmgr[18902]: BF25C1781FA: removed
Reply With Quote
  #6  
Old 23rd November 2006, 17:10
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Please run
Code:
tail -f /var/log/mail.log
, and at the same time send an email with PHP's mail() function. What happens in the tail output?
__________________
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
  #7  
Old 24th November 2006, 05:57
antoinel12 antoinel12 is offline
Junior Member
 
Join Date: Oct 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks, here is what I see :
Code:
Nov 23 22:45:03 serveur postfix/pickup[28231]: 976341781E6: uid=0 from=<root>
Nov 23 22:45:03 serveur postfix/cleanup[28701]: 976341781E6: message-id=<20061124034503.976341781E6@serveur.antoinel12.is-a-geek.net>
Nov 23 22:45:03 serveur postfix/qmgr[9049]: 976341781E6: from=<root@serveur.antoinel12.is-a-geek.net>, size=563, nrcpt=1 (queue active)
Nov 23 22:45:03 serveur postfix/local[28703]: 976341781E6: to=<administrateur@serveur.antoinel12.is-a-geek.net>, orig_to=<root>, relay=local, delay=1.1, delays=1/0.02/0/0.02, dsn=2.0.0, status=sent (delivered to maildir)
Nov 23 22:45:03 serveur postfix/qmgr[9049]: 976341781E6: removed
Nov 23 22:50:03 serveur postfix/pickup[28231]: A60A51781E6: uid=0 from=<root>
Nov 23 22:50:03 serveur postfix/cleanup[28768]: A60A51781E6: message-id=<20061124035003.A60A51781E6@serveur.antoinel12.is-a-geek.net>
Nov 23 22:50:03 serveur postfix/qmgr[9049]: A60A51781E6: from=<root@serveur.antoinel12.is-a-geek.net>, size=563, nrcpt=1 (queue active)
Nov 23 22:50:03 serveur postfix/local[28770]: A60A51781E6: to=<administrateur@serveur.antoinel12.is-a-geek.net>, orig_to=<root>, relay=local, delay=1.1, delays=1.1/0.02/0/0.02, dsn=2.0.0, status=sent (delivered to maildir)
Nov 23 22:50:03 serveur postfix/qmgr[9049]: A60A51781E6: removed
Nov 23 22:52:59 serveur postfix/smtpd[28829]: connect from localhost.localdomain[127.0.0.1]
Nov 23 22:52:59 serveur postfix/smtpd[28829]: 33567178207: client=localhost.localdomain[127.0.0.1]
Nov 23 22:52:59 serveur postfix/cleanup[28832]: 33567178207: message-id=<eb13eb060e1edb803012076505465010@stats.antoinel12.is-a-geek.net>
Nov 23 22:52:59 serveur postfix/qmgr[9049]: 33567178207: from=<phpmyvisites@gmail.com>, size=13901, nrcpt=1 (queue active)
Nov 23 22:52:59 serveur postfix/smtpd[28829]: disconnect from localhost.localdomain[127.0.0.1]
Nov 23 22:52:59 serveur postfix/smtpd[28829]: connect from localhost.localdomain[127.0.0.1]
Nov 23 22:52:59 serveur postfix/smtpd[28829]: 4A647178208: client=localhost.localdomain[127.0.0.1]
Nov 23 22:52:59 serveur postfix/cleanup[28832]: 4A647178208: message-id=<5178b8c337016ec8309b090b7d2140ea@stats.antoinel12.is-a-geek.net>
Nov 23 22:52:59 serveur postfix/qmgr[9049]: 4A647178208: from=<phpmyvisites@gmail.com>, size=9834, nrcpt=1 (queue active)
Nov 23 22:52:59 serveur postfix/smtpd[28829]: disconnect from localhost.localdomain[127.0.0.1]
Nov 23 22:52:59 serveur postfix/smtpd[28829]: connect from localhost.localdomain[127.0.0.1]
Nov 23 22:52:59 serveur postfix/smtpd[28829]: 5CF10178209: client=localhost.localdomain[127.0.0.1]
Nov 23 22:52:59 serveur postfix/cleanup[28832]: 5CF10178209: message-id=<150f3f82e471eea662690079b8c16cd9@stats.antoinel12.is-a-geek.net>
Nov 23 22:52:59 serveur postfix/qmgr[9049]: 5CF10178209: from=<phpmyvisites@gmail.com>, size=9842, nrcpt=1 (queue active)
Nov 23 22:52:59 serveur postfix/smtpd[28829]: disconnect from localhost.localdomain[127.0.0.1]
Nov 23 22:52:59 serveur postfix/smtpd[28829]: connect from localhost.localdomain[127.0.0.1]
Nov 23 22:52:59 serveur postfix/smtpd[28829]: 6E19017820A: client=localhost.localdomain[127.0.0.1]
Nov 23 22:52:59 serveur postfix/cleanup[28832]: 6E19017820A: message-id=<8e95c88589c7b66b20d6914df9bc8f72@stats.antoinel12.is-a-geek.net>
Nov 23 22:52:59 serveur postfix/qmgr[9049]: 6E19017820A: from=<phpmyvisites@gmail.com>, size=13915, nrcpt=1 (queue active)
Nov 23 22:52:59 serveur postfix/smtpd[28829]: disconnect from localhost.localdomain[127.0.0.1]
Nov 23 22:52:59 serveur postfix/smtpd[28829]: connect from localhost.localdomain[127.0.0.1]
Nov 23 22:52:59 serveur postfix/smtpd[28829]: 828A717820B: client=localhost.localdomain[127.0.0.1]
Nov 23 22:52:59 serveur postfix/cleanup[28832]: 828A717820B: message-id=<478cde5786d120c83e19154c942c8296@stats.antoinel12.is-a-geek.net>
Nov 23 22:52:59 serveur postfix/qmgr[9049]: 828A717820B: from=<phpmyvisites@gmail.com>, size=9842, nrcpt=1 (queue active)
Nov 23 22:52:59 serveur postfix/smtpd[28829]: disconnect from localhost.localdomain[127.0.0.1]
Nov 23 22:53:29 serveur postfix/smtp[28833]: connect to gmail-smtp-in.l.google.com[64.233.167.114]: Connection timed out (port 25)
Nov 23 22:53:29 serveur postfix/smtp[28834]: connect to gmail-smtp-in.l.google.com[64.233.163.27]: Connection timed out (port 25)
Nov 23 22:53:29 serveur postfix/smtp[28835]: connect to gmail-smtp-in.l.google.com[64.233.167.114]: Connection timed out (port 25)
Nov 23 22:53:29 serveur postfix/smtp[28836]: connect to gmail-smtp-in.l.google.com[64.233.163.114]: Connection timed out (port 25)
Nov 23 22:53:29 serveur postfix/smtp[28837]: connect to gmail-smtp-in.l.google.com[64.233.167.114]: Connection timed out (port 25)
Nov 23 22:53:59 serveur postfix/smtp[28833]: connect to gmail-smtp-in.l.google.com[64.233.167.27]: Connection timed out (port 25)
Nov 23 22:53:59 serveur postfix/smtp[28834]: connect to gmail-smtp-in.l.google.com[64.233.163.114]: Connection timed out (port 25)
Nov 23 22:53:59 serveur postfix/smtp[28835]: connect to gmail-smtp-in.l.google.com[64.233.167.27]: Connection timed out (port 25)
Nov 23 22:53:59 serveur postfix/smtp[28836]: connect to gmail-smtp-in.l.google.com[64.233.163.27]: Connection timed out (port 25)
Nov 23 22:53:59 serveur postfix/smtp[28837]: connect to gmail-smtp-in.l.google.com[64.233.167.27]: Connection timed out (port 25)
Nov 23 22:54:29 serveur postfix/smtp[28833]: connect to alt2.gmail-smtp-in.l.google.com[64.233.183.114]: Connection timed out (port 25)
Nov 23 22:54:29 serveur postfix/smtp[28834]: connect to alt1.gmail-smtp-in.l.google.com[64.233.185.114]: Connection timed out (port 25)
Nov 23 22:54:29 serveur postfix/smtp[28835]: connect to alt2.gmail-smtp-in.l.google.com[66.249.93.114]: Connection timed out (port 25)
Nov 23 22:54:29 serveur postfix/smtp[28836]: connect to alt2.gmail-smtp-in.l.google.com[64.233.183.114]: Connection timed out (port 25)
Nov 23 22:54:29 serveur postfix/smtp[28837]: connect to alt1.gmail-smtp-in.l.google.com[66.249.83.114]: Connection timed out (port 25)
I don't understand all these connections too google mail...

I tried with the send stats to user's email function
Reply With Quote
  #8  
Old 25th November 2006, 14:40
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Are you trying to send to an gmail account?
Please check if you are blacklisted: http://www.mxtoolbox.com/blacklists.aspx

Also make sure your ISP doesn't block port 25.
__________________
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
  #9  
Old 25th November 2006, 19:02
antoinel12 antoinel12 is offline
Junior Member
 
Join Date: Oct 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

RESULT: serveur.antoinel12.is-a-geek.net

Banner: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

Do I need to configure something in my domain name acount (Dyndns)
Reply With Quote
  #10  
Old 26th November 2006, 16:51
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
 
Default

You're on lots of blacklists, and besides I can't connect to your mail server. Make sure Postfix is running and that your firewall doesn't block port 25.
__________________
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
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
The Perfect Setup - Ubuntu 6.10 Server Question n74jw HOWTO-Related Questions 5 27th January 2008 13:14
Can't change keyboard in VMWare Ubuntu 6.10 Perfect setup - help! bwells HOWTO-Related Questions 4 20th November 2006 19:02
Core 4: Error Messages on Fresh Install re CTX/SSL jjw Installation/Configuration 30 6th September 2006 13:16
Can not recieve mail with de virtual mail adress Mounir Installation/Configuration 9 25th July 2006 00:16
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs ebbay Installation/Configuration 9 4th March 2006 12:47


All times are GMT +2. The time now is 02:41.


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