[ale] sendmail configuration

Geoffrey Myers lists at serioustechnology.com
Wed Jan 12 17:56:31 EST 2011


Lightner, Jeff wrote:
> ?
> 
> Maybe I misunderstood the original question.   The original question I
> thought was about relaying Linux generated Sendmail to Exchange.   Such
> relay is typically making an smtp connection.  When you use the
> "sendmail" or "mailx" command line (as I thought you were doing) to send
> mail from the Linux host to other recipients via the Exchange host then
> that's all you need.   The Exchange host itself would then decide what
> it needs to do to get the email to the correct mail box (e.g. to an
> internal Exchange account or to external accounts which it would in turn
> establish an SMTP connection to assuming it has been configured to send
> email out - that is what we do here.)

That's exactly what we need to do.  Whether it's via the command line or 
perl.  We want something like this to work:

date|mail foo at bar.com

 From a Linux box when the only outgoing mail gateway is Exchange.

> 
> IMAP, POP3 etc... are for establishing sessions directly with the mail
> server and use different ports.  If you're trying to do a full mail
> setup on the Linux host where it can both receive and send email that
> would be a bit more complicated.   Since I don't do that here I'd have
> to suggest you refer to tutorials about mail that talk about MTA, MUA
> etc...
> 
> -----Original Message-----
> From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of
> Geoffrey Myers
> Sent: Wednesday, January 12, 2011 2:46 PM
> To: Atlanta Linux Enthusiasts
> Subject: Re: [ale] sendmail configuration
> 
> Lightner, Jeff wrote:
>> By default it is port 25.  In our organization we use only port 25 and
>> haven't done the SSL mentioned by someone else.
> 
> In this situation, the client is not using smtp, but mapi, can this 
> still be accomplished?
> 
>> -----Original Message-----
>> From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of
>> Geoffrey Myers
>> Sent: Wednesday, January 12, 2011 10:14 AM
>> To: Atlanta Linux Enthusiasts
>> Subject: Re: [ale] sendmail configuration
>>
>> Lightner, Jeff wrote:
>>> In your sendmail.mc (typically in /etc/mail) look for line:
>>> dnl define(`SMART_HOST', `smtp.your.provider')dnl
>>>
>>> Remove the dnl at start (this is "do not load" which essentially
>>> comments out the entry).   Then replace the "smtp.your.provider" with
>>> your Exchange host.
>>>
>>> Then run "make -C /etc/mail" - this will recreate your sendmail.cf.
>>> (Note you need to have both the sendmail and sendmail.cf packages
>>> installed - Sendmail by itself doesn't include the ability to make
>>> Sendmail.cf.).
>>>
>>> As noted by Chris your Exchange server has to be configured to allow
>>> connections from the Sendmail host.
>> Still, is it going to use port 25?
>>
>>> -----Original Message-----
>>> From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of
>>> Christopher Fowler
>>> Sent: Wednesday, January 12, 2011 9:19 AM
>>> To: Atlanta Linux Enthusiasts
>>> Subject: Re: [ale] sendmail configuration
>>>
>>> On 1/12/2011 9:08 AM, Geoffrey Myers wrote:
>>>> Can sendmail be configured to use Exchange for outgoing email?
>>>>
>>>> Basically, I want to be able to send email from the command line on
> a
>>>> linux machine and the only way this can be done for this client is
>> via
>>>> their Exchange. server.
>>>>
>>> Try the smart relay option in sendmail.
>>>
>>> You may experience and issue where the Exchange server requires 
>>> authentication of SSL.  I've written a PERL program to send mail
> using
>>> these setups.
>>> _______________________________________________
>>> Ale mailing list
>>> Ale at ale.org
>>> http://mail.ale.org/mailman/listinfo/ale
>>> See JOBS, ANNOUNCE and SCHOOLS lists at
>>> http://mail.ale.org/mailman/listinfo
>>>  
>>> Proud partner. Susan G. Komen for the Cure.
>>>  
>>> Please consider our environment before printing this e-mail or
>> attachments.
>>> ----------------------------------
>>> CONFIDENTIALITY NOTICE: This e-mail may contain privileged or
>> confidential information and is for the sole use of the intended
>> recipient(s). If you are not the intended recipient, any disclosure,
>> copying, distribution, or use of the contents of this information is
>> prohibited and may be unlawful. If you have received this electronic
>> transmission in error, please reply immediately to the sender that you
>> have received the message in error, and delete it. Thank you.
>>> ----------------------------------
>>>
>>> _______________________________________________
>>> Ale mailing list
>>> Ale at ale.org
>>> http://mail.ale.org/mailman/listinfo/ale
>>> See JOBS, ANNOUNCE and SCHOOLS lists at
>>> http://mail.ale.org/mailman/listinfo
>>
> 
> 


-- 
Until later, Geoffrey

"I predict future happiness for America if they can prevent
the government from wasting the labors of the people under
the pretense of taking care of them."
- Thomas Jefferson


More information about the Ale mailing list