Sendmail on RH8.0 from CL

2003-03-09 Thread Johann Snyman
Hi!

 Well, I have RH8.0 mostly up and running,
 but I have a problem or two. I hope somebody might be able to help me
 out here.

 Sendmail:
 If I send mail from sylpheed, (like this one) my adress is correct,
 eg. [EMAIL PROTECTED]
 I use sendmail as MTA when sending from sylpheed. It sends the mail to
 localhost and sendmail takes care of the rest.

 The problem is that when I send mail from the CL, eg:
 mail [EMAIL PROTECTED]
 or even mail somelocaluser

 the user receives my mail as coming from [EMAIL PROTECTED]
 and mweb of course bounces back and mail destined to the 'net.

 How do I tell sendmail to always send as [EMAIL PROTECTED]

 Thanks!
 
-- 

QUIPd 1.02: (594 of 612)
- I don't know if it's what you want, but it's what you get.  :-)
-  -- Larry Wall in [EMAIL PROTECTED]
http://getafix.homelinux.org/
##28



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list


RE: Sendmail on RH8.0 from CL

2003-03-09 Thread Cowles, Steve
 -Original Message-
 From: Johann Snyman
 Sent: Sunday, March 09, 2003 4:41 AM
 Subject: Sendmail on RH8.0 from CL
 
 
 Hi!
 
  Well, I have RH8.0 mostly up and running,
  but I have a problem or two. I hope somebody might be able to help me
  out here.
 
  Sendmail:
  If I send mail from sylpheed, (like this one) my adress is correct,
  eg. [EMAIL PROTECTED]
  I use sendmail as MTA when sending from sylpheed. It sends 
  the mail to localhost and sendmail takes care of the rest.
 
  The problem is that when I send mail from the CL, eg:
  mail [EMAIL PROTECTED]  or even mail somelocaluser
 
  the user receives my mail as coming from [EMAIL PROTECTED]
  and mweb of course bounces back and mail destined to the 'net.
 
  How do I tell sendmail to always send as [EMAIL PROTECTED]

1) Add the following line to /etc/mail/sendmail.mc

MASQUERADE_AS(`mweb.co.za')dnl

2) As root, rebuild your /etc/mail/sendmail.cf file...
  # cd /etc/mail
  # cp sendmail.cf sendmail.cf.orig
  # m4 sendmail.mc sendmail.cf

3) Restart sendmail
  # /etc/init.d/sendmail restart

4) Test using the CL mail example in your post.

Steve Cowles



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list


Re: Sendmail on RH8.0 from CL

2003-03-09 Thread Johann Snyman
On Stardate : [-30]9953.10
-Sun09Mar03-1655

Cowles, Steve wrote:

  -Original Message-
  From: Johann Snyman
Snip
  
   How do I tell sendmail to always send as [EMAIL PROTECTED]
 
 1) Add the following line to /etc/mail/sendmail.mc
 
 MASQUERADE_AS(`mweb.co.za')dnl
SNIP


Thanks Steve, that works fine! Problem is almost solved, the only
thing left is the username. It still has me as [EMAIL PROTECTED]
instead of [EMAIL PROTECTED]

johann is my login on my box.

Sendmail is dark to me, and I saw how thick the manual is. Scary!

-- 

QUIPd 1.02: (248 of 612)
- Patient has a sore throat and goes to a doctor.
- Doctor:  Your tonsils gotta come out.
- Patient: I wanna second opinion.
- Doctor:  Okay, you're ugly, too.



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list


Re: Sendmail on RH8.0 from CL

2003-03-09 Thread Anthony E. Greene
On 09-Mar-2003/17:01 +0200, Johann Snyman [EMAIL PROTECTED] wrote:

Thanks Steve, that works fine! Problem is almost solved, the only
thing left is the username. It still has me as [EMAIL PROTECTED]
instead of [EMAIL PROTECTED]

johann is my login on my box.

See the -f option in the sendmail man page.

Tony
-- 
Anthony E. Greene mailto:[EMAIL PROTECTED]
OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
AOL/Yahoo Messenger: TonyG05HomePage: http://www.pobox.com/~agreene/
Linux. The choice of a GNU generation http://www.linux.org/



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list


RE: Sendmail on RH8.0 from CL

2003-03-09 Thread Cowles, Steve
 -Original Message-
 From: Johann Snyman
 Sent: Sunday, March 09, 2003 9:02 AM
 Subject: Re: Sendmail on RH8.0 from CL
 
 Thanks Steve, that works fine! Problem is almost solved, the only
 thing left is the username. It still has me as [EMAIL PROTECTED]
 instead of [EMAIL PROTECTED]
 
 johann is my login on my box.
 
 Sendmail is dark to me, and I saw how thick the manual is. Scary!

Sendmail can be a little scary. Took me a few years to feel comfortable
editing the .mc file. Anyway, based on my understanding of your post; what
your asking for is reverse mapping. In sendmail terms... feature
genericstable.

Use the same procedure as before - but add the following lines to
sendmail.mc and recreate your sendmail.cf

FEATURE(`genericstable',`hash /etc/mail/genericstable.db')dnl
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')dnl

Then in addition to the above:

1) you will need to add your reverse mappings to the genericstable and
generics-domains files. To get you started, try adding the following to
genericstable. Note: you might need to create this file:

johann  [EMAIL PROTECTED]

2) add the canonical name (fqdn) of your sendmail host (required for MSP) to
generics-domains. Note: You will probably have to create this file. To
determine the canonical name to add, type:

sendmail -bt -d0.1 /dev/null

look for the canonical name.

3) If the genericstable{.db} is not listed in /etc/mail/Makefile, then it
needs to be added so that the database can be created. On my system, its
already listed in the POSSIBLE variable declaration.

4) Finally, create the genericstable database and restart sendmail. Make
sure a genericstable.db file was created.
  # make
  # /etc/init.d/sendmail restart

5) test...

To understand the format of the genericstable, you will need to load the
redhat sendmail-cf rpm and then read the README file. Search for
genericstable. There is a boat load of sendmail config info in this file.

Good Luck
Steve Cowles



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list