Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Dec 03, 2009 2:27 am 
Offline
Newbie

Joined: Thu Dec 03, 2009 2:08 am
Posts: 2
Hi,

i cannot send mail from the site ..

this is my hosts file in /etc/hosts

127.0.0.1 localhost localhost.localdomain site.org
127.0.0.1 site.org

the mail works sometimes .. and most of the time it throws "Could not execute mail delivery program '/usr/sbin/sendmail -t -i' " .

Any idea what is happening?? i did exim restart

regards,
sheshadri


Top
   
 Post subject:
PostPosted: Fri Dec 04, 2009 9:29 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
Not knowing anything about exim, some ideas:
1. Is /usr/bin/sendmail linked to exim? If you have fooled around with installing different MTAs, it may not be.
2. What do your mail logs say?
3. Can you successfully invoke /usr/sbin/sendmail from the command line? Like so:
Code:
$ /usr/sbin/sendmail -t -i
To: me@example.net
From: me@myexamplelinode.com
Subject: a test

this is a test
^D

4. If #3 works, can you also do it as the user that is having trouble sending mail (e.g., on Debian/Ubuntu, Apache runs as the www-data user)?
5. Your hosts file almost certainly has nothing to do with things.


Top
   
 Post subject: Updates
PostPosted: Sat Dec 05, 2009 9:09 am 
Offline
Newbie

Joined: Thu Dec 03, 2009 2:08 am
Posts: 2
Hi,

Thanks for the reply.

Yes , sendmail is linked to exim(Wrapper) . Iam able to send mails using sendmail -t -i < mail.txt

Like i said the mails work sometimes(for all the users). And suddenly it stops . I have to restart httpd,exim to make it work . and most of the times the exim crashes and i ahve to manually start again .

I was thinking on cron restarting all the services every hour or so .. But that doesnt sound right.


Top
   
 Post subject: Re: Updates
PostPosted: Sun Dec 06, 2009 5:27 pm 
Offline
Senior Member

Joined: Mon Jun 16, 2008 6:33 pm
Posts: 151
Sheshadri wrote:
I have to restart httpd,exim to make it work . and most of the times the exim crashes and i ahve to manually start again .

What's happening to the rest of your server -- are you sure you're not just OOMing with a misconfigured apache or my.cnf ? Exim is generally rock stable.


Top
   
 Post subject:
PostPosted: Mon Dec 21, 2009 3:34 pm 
Offline

Joined: Thu Dec 17, 2009 12:30 am
Posts: 1
What distribution are you using? http://library.linode.com/email-guides/exim/ is helpful if you're using a debian based distro.

What program are using to test exim4?

Code:
echo "Body" | mail -s "Subject" you@domain.com


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group