|
Home > Archive > Red Hat Topics > October 2004 > ?how to generate sendmail.cf from sendmail.mx?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
?how to generate sendmail.cf from sendmail.mx?
|
|
|
| In Fedora Core 2, my sendmail.cf has a line like:
##### DO NOT EDIT THIS FILE! Only edit the source .mc file.
So I edited sendmail.mc, but I don't know how to generate a new
sendmail.cf.
I stopped and restarted the sendmail daemon using
system-config-services, but sendmail.mc was not read, and sendmail.cf
was not written.
How do I make it generate sendmail.cf?
| |
| Nils O. Selåsdal 2004-10-04, 5:45 pm |
| On Mon, 04 Oct 2004 17:17:36 +0000, Matt wrote:
> In Fedora Core 2, my sendmail.cf has a line like:
>
> ##### DO NOT EDIT THIS FILE! Only edit the source .mc file.
>
> So I edited sendmail.mc, but I don't know how to generate a new
> sendmail.cf.
>
> I stopped and restarted the sendmail daemon using
> system-config-services, but sendmail.mc was not read, and sendmail.cf
> was not written.
>
> How do I make it generate sendmail.cf?
You'll need the sendmail-cf package installed, then;
cd /etc/mail
make
Or if you want to do it "by hand";
cd /etc/mail
m4 <sendmail.mc >sendmail.cf
| |
| Scott Lurndal 2004-10-04, 5:45 pm |
| Matt <matt@themattfella.zzzz.com> writes:
>In Fedora Core 2, my sendmail.cf has a line like:
>
>##### DO NOT EDIT THIS FILE! Only edit the source .mc file.
>
>So I edited sendmail.mc, but I don't know how to generate a new
>sendmail.cf.
cd /etc/mail
make
scott
| |
|
| Nils O. Selåsdal wrote:
> On Mon, 04 Oct 2004 17:17:36 +0000, Matt wrote:
>
>
>
> You'll need the sendmail-cf package installed, then;
> cd /etc/mail
> make
>
> Or if you want to do it "by hand";
> cd /etc/mail
> m4 <sendmail.mc >sendmail.cf
Much obliged.
By the way, I am trying to set up to send mail using the BSD mail
program. But I still want to be able to send and receive using Mozilla.
Are those two likely to interfere with each other? Thanks again.
| |
|
| Scott Lurndal wrote:
> Matt <matt@themattfella.zzzz.com> writes:
>
>
>
> cd /etc/mail
> make
>
> scott
I was able to generate the sendmail.cf, but I guess that wasn't my
problem. I have been trying to set my return address. Emails sent
using the BSD mail program still get bounced by my ISP, with a message like:
SMTP; 554 <root@myhost.localdomain>: Sender address rejected: Domain not
found.
FAQs at the ISP's website indicates: Improperly formatted or unknown
envelope sender email addresses will be blocked.
I am thinking that this is a BSD mail issue. Maybe I need to edit
something like .mailrc to set my return address?
Also my ISP login is not the same as my Linux login.
| |
|
| Matt wrote:
> I have been trying to set my return address. Emails sent
> using the BSD mail program still get bounced by my ISP
But mail sent and received by Mozilla is fine.
| |
| Paul Lutus 2004-10-04, 5:45 pm |
| Matt wrote:
/ ...
> I was able to generate the sendmail.cf, but I guess that wasn't my
> problem. I have been trying to set my return address. Emails sent
> using the BSD mail program still get bounced by my ISP, with a message
> like:
>
> SMTP; 554 <root@myhost.localdomain>: Sender address rejected: Domain not
> found.
>
> FAQs at the ISP's website indicates: Improperly formatted or unknown
> envelope sender email addresses will be blocked.
You know, all this would be resolved in one exchange of posts, if you would
only state the entire problem at once.
How are you trying to send e-mails, using what programs and/or servers, from
where, to where?
The recipient server must know of the e-mail account and the FQDN. Scan the
addres. Which part is not known to the e-mail server?
>
> I am thinking that this is a BSD mail issue. Maybe I need to edit
> something like .mailrc to set my return address?
That depends on what you are trying to do. By the way, what are you trying
to do?
> Also my ISP login is not the same as my Linux login.
Care to explain how this relates to your ISP?
--
Paul Lutus
http://www.arachnoid.com
| |
| Chris Gordon 2004-10-04, 8:45 pm |
| On Mon, 04 Oct 2004 17:17:36 +0000, Matt wrote:
> In Fedora Core 2, my sendmail.cf has a line like:
>
> ##### DO NOT EDIT THIS FILE! Only edit the source .mc file.
>
> So I edited sendmail.mc, but I don't know how to generate a new
> sendmail.cf.
>
> I stopped and restarted the sendmail daemon using
> system-config-services, but sendmail.mc was not read, and sendmail.cf
> was not written.
>
> How do I make it generate sendmail.cf?
The init script to start sendmail on Fedora/RedHat will recompile the mc
file and create the new cf file (along with create the approrpiate db
files). All you need to do is to restart sendmail (/etc/init.d/sendmail
restart). Of course you'll need the sendmail-cf rpm installed as it
contains all of the macros to rebuild the cf file.
Chris
| |
| Scott Lurndal 2004-10-05, 5:45 pm |
| Matt <matt@themattfella.zzzz.com> writes:
>Scott Lurndal wrote:
>
>I was able to generate the sendmail.cf, but I guess that wasn't my
>problem. I have been trying to set my return address. Emails sent
>using the BSD mail program still get bounced by my ISP, with a message like:
>
>SMTP; 554 <root@myhost.localdomain>: Sender address rejected: Domain not
>found.
>
>FAQs at the ISP's website indicates: Improperly formatted or unknown
>envelope sender email addresses will be blocked.
>
>I am thinking that this is a BSD mail issue. Maybe I need to edit
>something like .mailrc to set my return address?
>
>Also my ISP login is not the same as my Linux login.
bash# cd /etc/mail
bash# echo "linuxloginname email@isp.domain" >> /etc/mail/genericstable
bash# make
Make sure that your sendmail.mc has:
FEATURE(`genericstable')
This will map your login name to 'email@isp.domain'. You'll probably
also want to turn on masquerading by adding these lines to your sendmail.mc
file:
dnl # masquerade not just the headers, but the envelope as well
FEATURE(`masquerade_envelope')dnl
dnl # masquerade not just @mydomainalias.com, but @*.mydomainalias.com as well
FEATURE(`masquerade_entire_domain')dnl
FEATURE(`local_no_masquerade')
FEATURE(`allmasquerade')
MASQUERADE_AS(`isp.domain')dnl
define(`SMART_HOST',`[smtp.isp.domain]')
If you need to authenticate to your ISP smtp server do this:
bash# cd /etc/mail
bash# echo "AuthInfo:isp.domain \"I:email@isp.domain\" \"P:emailpassword\" \"M:PLAIN\"" >> /etc/mail/access
bash# make
(you may not need to specify 'M:PLAIN' for all ISPs).
scott
| |
|
| Scott Lurndal wrote:
> Matt <matt@themattfella.zzzz.com> writes:
>
>
>
> bash# cd /etc/mail
> bash# echo "linuxloginname email@isp.domain" >> /etc/mail/genericstable
> bash# make
>
> Make sure that your sendmail.mc has:
> FEATURE(`genericstable')
>
> This will map your login name to 'email@isp.domain'. You'll probably
> also want to turn on masquerading by adding these lines to your sendmail.mc
> file:
>
> dnl # masquerade not just the headers, but the envelope as well
> FEATURE(`masquerade_envelope')dnl
> dnl # masquerade not just @mydomainalias.com, but @*.mydomainalias.com as well
> FEATURE(`masquerade_entire_domain')dnl
> FEATURE(`local_no_masquerade')
> FEATURE(`allmasquerade')
> MASQUERADE_AS(`isp.domain')dnl
> define(`SMART_HOST',`[smtp.isp.domain]')
>
> If you need to authenticate to your ISP smtp server do this:
>
> bash# cd /etc/mail
> bash# echo "AuthInfo:isp.domain \"I:email@isp.domain\" \"P:emailpassword\" \"M:PLAIN\"" >> /etc/mail/access
> bash# make
>
> (you may not need to specify 'M:PLAIN' for all ISPs).
>
> scott
Thanks for your help. Your recommendations seem promising. I tried
everything except the authentication part, with little apparent
improvement. Probably some little detail is wrong and I don't
understand enough to recognize it. I can't give it much attention right
now, but could you give a small reading assignment so I can begin to
understand how this works?
|
|
|
|
|