Fedora Linux Support Community & Resources Center
  #1  
Old 17th July 2012, 07:29 AM
JCatFedora15 Offline
Registered User
 
Join Date: Jul 2011
Posts: 9
linuxfirefox
sendmail error

Hi all,

I tried to use mutt to sendmail using my company e-mailid. I have configured mutt to receive mails. But, send mail is not working. I googled and found that a MTA has to be configured. I configured sendmail. But, I get the following error on using sendmail:
[root@ localhost jaya]# sendmail -v geetkumar@company.co.in
company.co.in: Name server timeout
geetkumar@company.co.in... Transient parse error -- message queued for future delivery
Hi
.
geetkumar@company.co.in... queued


I have configured sendmail to send mail using the following:

vi /etc/hosts
10.20.20.220 smtp.company.co.in

vi /etc/mail/genericstable
jaya jaya@company.co.in

vi /etc/sendmail.mc
define(`SMART_HOST',`smtp.company.co.in'')
FEATURE(masquerade_envelope)dnl
FEATURE(`genericstable')dnl
GENERICS_DOMAIN(`localhost.localdomain')dnl

make -C /etc/mail

vi /etc/mail/access
connect:10.x.x.x(SMTP server IP) RELAY

cd /etc/mail
/usr/sbin/makemap hash access < access
service sendmail restart

Please point out the configuration error or let me know if there is any other way to configure mutt to be able to send e-mail from the specified email address

Regards
Jaya
Reply With Quote
  #2  
Old 17th July 2012, 08:38 AM
stevea's Avatar
stevea Online
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,302
linuxfirefox
Re: sendmail error

If outbound email is all you need - I suggest you install and configure 'ssmtp' as it's far simpler than sendmail, and only runs on demand (no daemon).

After install you need to use the 'alternatives' or better yet 'galternatives' to set the 'mta' and link it in as the sendmail implementation.


/etc/ssmtp/ssmtp.conf has some decent config examples and you can google more.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #3  
Old 17th July 2012, 09:04 AM
steveking's Avatar
steveking Offline
Registered User
 
Join Date: Apr 2012
Location: Surrey
Posts: 52
linuxubuntufirefox
Re: sendmail error

I swear by exim myself I actually posted a tutorial on setting it up in fedora, never had any problems with it.
Reply With Quote
  #4  
Old 17th July 2012, 09:18 AM
JCatFedora15 Offline
Registered User
 
Join Date: Jul 2011
Posts: 9
linuxfirefox
Re: sendmail error

Hi n thanks for the reply,

Can you provide me the link to your write up on ssmtp configuration?
Reply With Quote
  #5  
Old 17th July 2012, 09:25 AM
stevea's Avatar
stevea Online
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,302
linuxfirefox
Re: sendmail error

Nothing wrong with exim, postfix or even the ancient, venerable and boneheadedly complex sendmail. But the OP doesn't suggest that he wants or needs an industrial strength mailserver. If the task is just to move mail/mailx/sendmail originated email off a laptop or home system then all those are vast overkill and excessive.
ssmtp was custom made for this scenario,

Quote:
ssmtp is a send-only sendmail emulator for machines which normally
pick their mail up from a centralized mailhub (via pop, imap, nfs
mounts or other means). It provides the functionality required for
humans and programs to send mail via the standard or /usr/bin/mail
user agents.
I run a mail server (dovecot, postfix) on a virtual machine, but to get those cron messages into the mailer I install ssmpt on each of the other system. The configuration is one line defining 'mailhub=mail.localdomain'. You need just a little more for authentication on commercial smtp servers.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #6  
Old 17th July 2012, 12:10 PM
JCatFedora15 Offline
Registered User
 
Join Date: Jul 2011
Posts: 9
linuxfirefox
Re: sendmail error

Hi,

I edited /etc/ssmtp/ssmtp.conf

mailhub=smtp.company.co.in

I get the following error:
ssmtp:530 authentication needed
Error sending message, child exited 1 ().

---------- Post added at 04:40 PM ---------- Previous post was at 02:12 PM ----------

Hi n thanks,

I commented the following:
#UseSTARTTLS=YES

# Use SSL/TLS certificate to authenticate against smtp host.
#UseTLSCert=YES

# Use this RSA certificate.
#TLSCert=/etc/pki/tls/private/ssmtp.pem

It's working fine now.
Reply With Quote
Reply

Tags
error, sendmail

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
sendmail error av1611 Using Fedora 12 13th April 2012 01:28 PM
sendmail error, quacked Servers & Networking 4 26th October 2007 05:39 AM


Current GMT-time: 23:17 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat