Dumb question here:

I want a makefile to send mail somewhere. So I use /usr/bin/mail.
However, it seems not to add a domain to my 'From' address. So, the sendmail
on my machine refuses to relay them from this internal box to our mail
system. Usually, all my outgoing mail goes to the system handling mail
direct. Incomming mail is properly handled by my local sendmail. And,
in any event, the e-mailer MUAs (sylpheed, Eudora and the like) nicely add the
domain to the From address. But not /usr/bin/mail. This is, I admit, an odd
use, but I cannot sort it out. Is there a way to get /usr/bin/mail to add
the domain? Adding a 'From:' to the content does not seem to work. Seems
/usr/bin/mail filters these away and adds its own, which is just my user name
without the domain.

Failing that, is there a way to get sendmail to add a domain to unqualified
>From addresses and then do the relay? The box I am doing this with is behind
a firewall, so I don't think it could be used for relay by someone else. I
could be happy limiting it to mail that originates on the same machine.

What would be nice is a /usr/bin/mail that is told a box running SMTP to
which the mails should be sent, instead of the local machine.


On Mon, 18 Mar 2002 07:36:09 -0500 (EST)
Gerry Doris <[EMAIL PROTECTED]> wrote:

> On Sun, 17 Mar 2002, Douglas J Hunley wrote:
> 
> > Bill Day spewed electrons into the ether that assembled into:
> > > as in?   I still havent quite got SMTP with sendmail working, if I use
> > > my
> > 
> > as in anyone who sucessfully pops first (id and password) can send
> > through my sendmail. right now, I can set you up an account on my
> > machine, and you can pop from it, but you won't be able to send through
> > it cause relaying is denied. If you logged into the machine, you could
> > send. pop before smtp gets around this..
> > 
> I can help you set up sendmail with authorization.  It's quite simple.  
> The idea is that your clients either check authentication required on 
> their mail clients (ie. win Outlook) and point them at your mail server 
> that's running sendmail as the MTA.  Linux boxes just point their mail 
> clients at their own localhost sendmail which is told to use your mail 
> server as their smart host.
> 
> sendmail on your mail server will then authenticate your clients using 
> their user name and password.  They will also be able to relay through 
> your mail server without problems.
> 
> I have to head out to work now but will send on the files this evening so 
> you can see how it works.
> 
> 
> Gerry
> 
> _______________________________________________
> Linux-users mailing list -
> http://linux-sxs.org/mailman/listinfo/linux-users
> Subscribe/Unsubscribe info, Archives,and Digests are located at the above
> URL.


-- 
+============================+===============================+
| Roger Oberholtzer          |   E-mail:        [EMAIL PROTECTED] |
| OPQ Systems AB             |      WWW:  http://www.opq.se/ |
| Erik Dahlbergsgatan 41-43  |    Phone: Int + 46 8   314223 |
| 115 32 Stockholm           |   Mobile: Int + 46 733 621657 |
| Sweden                     |      Fax: Int + 46 8   302602 |
+============================+===============================+

_______________________________________________
Linux-users mailing list - http://linux-sxs.org/mailman/listinfo/linux-users
Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.

Reply via email to