![](https://seccdn.libravatar.org/avatar/16cb3d04483755a9dce1371cb29b12ff.jpg?s=120&d=mm&r=g)
Hi, I'm trying to set up my mail at home and am having a small problem. I've followed the guideline in the SuSE manual (6.3) but I just can't get it to send mail externally correctly. The hostname is setup as pc.domain.com When sendmail tries to send mail to the SMTP server (dialup) it sends the mail with the FROM field as me@pc.domain.com This causes a problem with a lot of destinations. For example if I try to send a mail to myself at work it bounes. Basically the server tells me that it won't accept the email since pc.domain.com is not a valid domain. This I can understand, since I don't have a permanent IP to use, only one that is given to me when I dialup. I think I need to get sendmail to fill the FROM field as me@domain.com but just can't get it to do so. I am using the rc.config file to set it up, but to no avail. These are my entries FROM_HEADER="irish-networx.com" SENDMAIL_ARGS="-bd -om" SENDMAIL_EXPENSIVE="yes" SENDMAIL_NOCANIFY="no" SENDMAIL_SMARTHOST="smtp:smtp.oceanfree.net" SENDMAIL_LOCALHOST="localhost pc.irish-networx.com" SENDMAIL_TYPE="yes" I am using Kmail as my mail agent, and have set the identifcation correctly, and the reply-to-address, but still the mail goes out as me@pc.domain.com. Any help would be greatly appreciated. TIA RikD. -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
![](https://seccdn.libravatar.org/avatar/c1e31a30586d2a65e8af4cc928f10802.jpg?s=120&d=mm&r=g)
At 10:17 AM 05/26/00 +0100, Rik Dunphy wrote:
When sendmail tries to send mail to the SMTP server (dialup) it sends the mail with the FROM field as me@pc.domain.com
This causes a problem with a lot of destinations. For example if I try to send a mail to myself at work it bounes. Basically the server tells me that it won't accept the email since pc.domain.com is not a valid domain.
This I can understand, since I don't have a permanent IP to use, only one that is given to me when I dialup.
No, it's not the IP issue, rather the name lookup is failing. I was running dialup for a while without a problem.
I think I need to get sendmail to fill the FROM field as me@domain.com
Then you need to setup sendmail to masquerade.
but just can't get it to do so. I am using the rc.config file to set it up, but to no avail.
Sendmail is confusing enough without having an extra layer of settings with SuSE. Maybe there's a setting in rc.config for masquerading that someone can point out, but I don't know it. What you need is this in your sendmail.cf file: # who I masquerade as (null for no masquerading) (see also $=M) DMdomain.com Where domain.com is your real domain name. Frankly, what I did was to download a current version of sendmail, and build and install from scratch. It cleared up a lot of problems I was having. Here's my .mc file. I'm not sure if it's completely correct, but it's real simple. You might want to add a smarthost setting. OSTYPE(linux)dnl define(`confCF_VERSION',`Linux 2000/05/23')dnl DOMAIN(generic)dnl FEATURE(`smrsh',`/usr/sbin/smrsh') FEATURE(local_procmail)dnl FEATURE(virtusertable)dnl MAILER(local)dnl MAILER(smtp)dnl MAILER(procmail)dnl FEATURE(use_cw_file)dnl FEATURE(use_ct_file)dnl MASQUERADE_AS(`hank.org')dnl FEATURE(masquerade_envelope)dnl FEATURE(access_db)dnl Bill Moseley mailto:moseley@hank.org -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (2)
-
moseley@hank.org
-
Rik.Dunphy@motorola.com