Helpful Information
 
 
Category: Mail Server Help
Configure sendmail..

What file I should configure for sendmail?
sendmail.cf vs. sendmail.mc ..

And should I restart sendmail after reconfugiration ?

>> What file I should configure for sendmail?
>> sendmail.cf vs. sendmail.mc ..

If you read your sendmail.cf, there's a comment on top that reads as follows:

##### DO NOT EDIT THIS FILE! Only edit the source .mc file.

This is present on all the .cf files, and Eric Allman (the author of Sendmail) himself recommends that you not edit the .cf files directly. The recommended method is to edit the mc file and then use the m4 command to generate the .cf file. However, you don't have to listen to him, and you can always edit the .cf file directly, if you feel inclined to do so -- just be prepared to encounter a world of pain.

>> And should I restart sendmail after reconfugiration ?
Yes, you need to do this for it to reread the config file changes.

Personally, if you ask me though, I would just stop sendmail and install qmail instead, but that's just me :D.

Moved to the appropriate forum, now that our Mail Forum is back in business. Can we say First Moved Post!!!! :D

I still use sendmail infact
I recently rebuilt mine to sendmail-8.12.10 without building the cf's. You can't beat using AES256 cipher to send msg to other STARTTLS aware servers :). Last time I checked you had to do a lot of fiddling with postfix only to do 128bits under 3DES.


by int-mx-relay.mhweb.internal (8.12.10+Sun/8.12.10) with ESMTP id h8M9AouF046454
(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);


Yes, you should edit the sendmail.mc as a best practice. But Scorpions4ever is correct you can edit the sendmail.cf and submit.cf directly. Make sure you back it up thou. Make sure you HUP the sendmail process.

Cheers.

Originally posted by Scorpions4ever
>> What file I should configure for sendmail?
>> sendmail.cf vs. sendmail.mc ..

If you read your sendmail.cf, there's a comment on top that reads as follows:

##### DO NOT EDIT THIS FILE! Only edit the source .mc file.

This is present on all the .cf files, and Eric Allman (the author of Sendmail) himself recommends that you not edit the .cf files directly. The recommended method is to edit the mc file and then use the m4 command to generate the .cf file. However, you don't have to listen to him, and you can always edit the .cf file directly, if you feel inclined to do so -- just be prepared to encounter a world of pain.

>> And should I restart sendmail after reconfugiration ?
Yes, you need to do this for it to reread the config file changes.

Personally, if you ask me though, I would just stop sendmail and install qmail instead, but that's just me :D.

Moved to the appropriate forum, now that our Mail Forum is back in business. Can we say First Moved Post!!!! :D
How mc4 command can be apply to some changes? I look on the man pages for mc4 and cannot find it.

How to add a user to sendmail?

Howdy,
The command is actually "m4"
eg. m4 sendmail.mc > sendmail.cf

Not sure what you mean about add a user to sendmail, do you mean an alias? Normally what we do is create a user locally or by NIS+ and assign an email alias. I hope thats what you mean?

Cheers

Originally posted by dag-otto
Howdy,
The command is actually "m4"
eg. m4 sendmail.mc > sendmail.cf

Not sure what you mean about add a user to sendmail, do you mean an alias? Normally what we do is create a user locally or by NIS+ and assign an email alias. I hope thats what you mean?

Cheers

If sendmail runs, how can I add new email address to sendmail. So I can receive and send email.

Thanks a lot

Hi...!
I'm using Linux AS3.0 and perl 5.6.8 with Apache2.
Step1:

I changed followings in the file "/etc/mail/sendmail.mc"
*define(`SMART_HOST',`smtp.mydomain.com')

Step2:

then I executed the m4 utility to generate Sendmail.cf file and the file has been created at /etc/Sendmail.cf

here I don't know the things have to be edited. Please let me know ,whether I have to edit anythings in .cf file.

Step3:

I restarted the Sendmail using /sbin/service sendmail restart

Step4:

I executed one Perl Program to send a mail trhu' sendmail option the source code as follows,


#! /usr/local/ActivePerl-5.8/bin/perl

use strict;
use warnings;

my $sendmail = "/usr/sbin/sendmail -t";
my $reply_to = "Reply-to: soft_seelan\@yahoo.co.in";
my $subject = "Subject: It's me Jey";
my $content = "It's working Yar.";
my $to = "jayaseelanv\@mydomain.com";

open(SENDMAIL, "|$sendmail") or die "Cannot open $sendmail: $!";
print SENDMAIL $reply_to;
print SENDMAIL $subject;
print SENDMAIL $to;
print SENDMAIL "Content-type: text/plain\n\n";
print SENDMAIL $content;
close(SENDMAIL);

print "Confirmation of your submission will be emailed to you.";




Output of this Code:

"No recipient addresses found in header"

Please let me know, is it the correct Configuration method, which I did? if not please guide me to get the right way to configure the sendmail.

Regards,
Jey










privacy (GDPR)