?how to generate sendmail.cf from sendmail.mx?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Red Hat support > Red Hat Topics > ?how to generate sendmail.cf from sendmail.mx?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    ?how to generate sendmail.cf from sendmail.mx?  
Matt


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-04-04 10:45 PM

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?





[ Post a follow-up to this message ]



    Re: ?how to generate sendmail.cf from sendmail.mx?  
Nils O. Selåsdal


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-04-04 10: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







[ Post a follow-up to this message ]



    Re: ?how to generate sendmail.cf from sendmail.mx?  
Scott Lurndal


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-04-04 10: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






[ Post a follow-up to this message ]



    Re: ?how to generate sendmail.cf from sendmail.mx?  
Matt


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-04-04 10:45 PM

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.








[ Post a follow-up to this message ]



    Re: ?how to generate sendmail.cf from sendmail.mx?  
Matt


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-04-04 10:45 PM

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.





[ Post a follow-up to this message ]



    Re: ?how to generate sendmail.cf from sendmail.mx?  
Matt


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-04-04 10:45 PM

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.





[ Post a follow-up to this message ]



    Re: ?how to generate sendmail.cf from sendmail.mx?  
Paul Lutus


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-04-04 10: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






[ Post a follow-up to this message ]



    Re: ?how to generate sendmail.cf from sendmail.mx?  
Chris Gordon


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-05-04 01:45 AM

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






[ Post a follow-up to this message ]



    Re: ?how to generate sendmail.cf from sendmail.mx?  
Scott Lurndal


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-05-04 10: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 we
ll
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





[ Post a follow-up to this message ]



    Re: ?how to generate sendmail.cf from sendmail.mx?  
Matt


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-09-04 12:45 PM

Scott Lurndal wrote:
> Matt <matt@themattfella.zzzz.com> writes:
> 
>
>
>   bash# cd /etc/mail
>   bash# echo "linuxloginname   email@isp.domain" >> /etc/mail/genericstabl
e
>   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.m
c
> 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:emailpasswo
rd\" \"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?






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:17 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register