[wellylug] Re: sendmail probs

Persian persian13 at ihug.co.nz
Mon Aug 25 14:58:51 NZST 2003


Hi Ewen,

Thanks for all your help and patience!

On Sun, Aug 24, 2003 at 01:10:02 +1200, Ewen McNeill wrote:

> >this is my /etc/hosts
> >
> >127.0.0.1       localhost.localdomain   localhost Mercury
> >-------------------------------------------------

 And this is why your mail is coming from "localhost.localdomain".

Yes well I asked a friend in Oz and he said not to change the /etc/hosts file, so
is that right, or does the /etc/hosts need changing?


> Your sendmail.cf file contains:
> Cwlocalhost
> 
> which tells sendmail "your short name is "localhost".  The /etc/hosts
> file you quote says "the full name of the short name 'localhost' is
> 'localhost.localdomain'", so that's what you're getting.
> 
> You can override this setting by putting a "CwSOMETHING" entry into
> sendmail.mc and running make in the /etc/mail directory.
> 
> But the bigger problem is that if you don't have your own domain name
> registered it's difficult to pick something "sensible" to put in their.

I havent put anything in there so far, I dont understand it at all.
If you think its difficult to pick something sensible, then I have no clue!

> 
> You _might_ be able to get away with "ihug.co.nz" as the full name
> (since they're your ISP), but it's not really correct and may cause
> other problems.

I dont want more problems thats for sure!

> You _might_ also be able to avoid the problem by creating the file
> /etc/mailname with one line in it:
> 
> -=- cut here -=-
> ihug.co.nz
> -=- cut here -=-
> 

OK well I made that file.

> 
> Off the top of my head I think you might want to:
> - put your normal username (ie, the one you log into your machine with)
>   into /etc/mail/trusted-users  (or similar; whatever file is mentioned in the
>   sendmail.cf line starting "Ft"), so you can get mutt to specify the
>   address (and restart sendmail).   This tells sendmail that you're a

The Ft line indicated the file u said,  so I added my login name to the trusted-users.

> - add "set envelope_from=yes" to your .muttrc and restart mutt
> 
> The "localhost.localdomain" bit should probably be hidden by that,
> providing (a) you use the IHug mail server, and (b) they're willing to
> accept "localhost.localdomain" (which it looks like they will for now).
> 

Right I added that too and restarted mutt.

The other stuff I did prior, was as per Rob's mail, I changed the :-
Masquerade_As, the envelope part and entire domain part of masquerade to ihug.co.nz,  but
I left those 2 lines commented out that had Masquerade_Domain localhost.localdomain
after I saw your comments to Rob.

Thanks Rob for your help too.

thanks
Persian



More information about the wellylug mailing list