LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-15-2005, 03:12 PM   #1
cxuk
LQ Newbie
 
Registered: Mar 2005
Posts: 11

Rep: Reputation: 0
Sendmail & PHP


I have a setup with Web://CP, I am using sendmail, PHP, Acpatch...


I stumbled upon this fault because i installed PHPBB and the user activiation dose not send emails either the Billing software i have?


My PHP Config.

Code:
[mail function] 
; For Win32 only. 
SMTP = localhost 

; For Win32 only. 
sendmail_from = me@localhost.com 

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i"). 
sendmail_path = /usr/sbin/sendmail -t -i
I have also tried to change it to sendmail -t -i and i still get the same the email is not sent?
 
Old 03-15-2005, 04:02 PM   #2
ahwkong
Member
 
Registered: Aug 2004
Location: Australia
Distribution: Fedora
Posts: 282

Rep: Reputation: 30
You may have done it but it is not obvious in the post.... :-)

have you checked the /var/log/maillog in the first place to see if there is any problem with sendmail itself?
 
Old 03-15-2005, 04:22 PM   #3
cxuk
LQ Newbie
 
Registered: Mar 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Hiya i found the following errors in the maillog.... Maybe these could help these were sent by PHP Via the httpd Server....


Mar 13 23:05:17 falcon sm-msp-queue[6242]: j2DMDFtR005500: to=tom@cxuk.net, ctladdr=apache (48/48), delay=00:52:02, xdelay=00:00:00, mailer=relay, pri=120413, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

Mar 13 23:05:17 falcon sm-msp-queue[6242]: j2DMHhOV005584: to=tom@cxuk.net, ctladdr=apache (48/48), delay=00:47:34, xdelay=00:00:00, mailer=relay, pri=120413, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

Mar 13 23:05:17 falcon sm-msp-queue[6242]: j2DM30wJ004918: to=tom@cxuk.net, ctladdr=webcp (90/501), delay=01:02:17, xdelay=00:00:00, mailer=relay, pri=210413, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

Mar 13 23:05:17 falcon sm-msp-queue[6242]: j2DM0Kjl004782: to=tom@cxuk.net, ctladdr=webcp (90/501), delay=01:04:57, xdelay=00:00:00, mailer=relay, pri=300413, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

is this something to do with the ACL's?

Thanks alot!!
 
Old 03-15-2005, 04:30 PM   #4
ahwkong
Member
 
Registered: Aug 2004
Location: Australia
Distribution: Fedora
Posts: 282

Rep: Reputation: 30
I would say it is more likely your sendmail is not configured properly.

Do you know how to setup sendmail? Do you know about /etc/mail/sendmail.mc?

If not, then I would suggest you to try out postfix (http://www.postfix.org/), which is a replacement to sendmail the mail server, and in my opinion, easier to config.
 
Old 03-15-2005, 04:33 PM   #5
cxuk
LQ Newbie
 
Registered: Mar 2005
Posts: 11

Original Poster
Rep: Reputation: 0
yea i know about that dude ye, so have i got to add webcp and acpach to a list or sumat to enable it to send emails?
 
Old 03-15-2005, 04:37 PM   #6
ahwkong
Member
 
Registered: Aug 2004
Location: Australia
Distribution: Fedora
Posts: 282

Rep: Reputation: 30
Well, if everyone else except webcp and apache cannot send email out, then by all mean try ACL.

At least it is sendmail problem, so I guess you can solve it easily.
 
Old 03-15-2005, 04:39 PM   #7
cxuk
LQ Newbie
 
Registered: Mar 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Ha Fixed it!

SMTP Options was Port=25,Addr=10.0.2.2, Name=MTA insed of Port=25,Addr=127.0.0.1, Name=MTA

And also added the webservers username to the trusted users list and also alowed it relay and it now works

Thanks for the hints dude
 
Old 03-15-2005, 04:46 PM   #8
cxuk
LQ Newbie
 
Registered: Mar 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Problem is now that i cant use SMTP via outlook? on my Windows PC so is there any way of puting two IP Address's

Such as Port=25,Addr=127.0.0.1,10.0.2.2, Name=MTA

ive tried that but it did not work???

Is there another way of doing this?
 
Old 03-15-2005, 07:53 PM   #9
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
Any reason you can't remove the line completly? That way it works on all interfaces on that server.

Last edited by benjithegreat98; 03-15-2005 at 07:55 PM.
 
Old 03-16-2005, 06:34 AM   #10
cxuk
LQ Newbie
 
Registered: Mar 2005
Posts: 11

Original Poster
Rep: Reputation: 0
So you say if i remove that line out of the config it will alow me to use SMTP on every interface?
 
Old 03-16-2005, 06:39 AM   #11
cxuk
LQ Newbie
 
Registered: Mar 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Ha thanks for that it now works on every interface...
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
php+ sendmail no good - python + sendmail ok nephish Linux - Networking 1 10-07-2005 01:19 PM
php-devel & PHP extensions EHCanadian Mandriva 0 06-23-2005 06:06 PM
PHP & MySQL Count on PHP Gerardoj Programming 1 06-01-2004 10:43 AM
sendmail & Suse 8.0 & outgoing adress rewrite mule Linux - Software 2 09-01-2003 01:13 AM
FYI: O'Reilly, DNS&BIND & Sendmail unSpawn Linux - Networking 3 06-06-2001 08:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration