Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Sendmail and MS Exchange

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
-leliel-
Apprentice
Apprentice
Posts: 294
Joined: Sat May 03, 2003 6:51 pm
Location: Germany

Sendmail and MS Exchange

  • Quote

Post by -leliel- » Thu Aug 14, 2003 2:06 pm

Hi,

I want to send mail with sendmail through a MS Exchange server (relay).

How do I login to this server using sendmail??

ehlo output of the exchange server:
250-ex.domain.com Hello [172.28.0.1]
250-XEXCH50
250-HELP
250-ETRN
250-DSN
250-SIZE 8192000
250-AUTH LOGIN
250 AUTH=LOGIN
Thanks a lot.
Top
kashani
Advocate
Advocate
User avatar
Posts: 2030
Joined: Mon Sep 02, 2002 6:38 am
Location: San Francisco
Contact:
Contact kashani
Website

  • Quote

Post by kashani » Thu Aug 14, 2003 11:29 pm

Sendmail is an MTA much like Exchange itself. I suppose you could hack something together to make Sendmail login into Exchange, but I'm not sure that you would need to. You would need to tell Exchange that the IP address of your Sendmail machine is allowed to relay mail and then configure Sendmail to use Exchange as the relay.

Unfortunately, I've usually done it the other way around for scalibitlity reasons. :)

kashani
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Top
-leliel-
Apprentice
Apprentice
Posts: 294
Joined: Sat May 03, 2003 6:51 pm
Location: Germany

  • Quote

Post by -leliel- » Fri Aug 15, 2003 5:45 am

Well, I have to write a script to automatically send mails.

Code: Select all

/usr/sbin/sendmail -t -n << EOF
From:blubb
To:abc
Subject:test
abcde
EOF
This mail should be relayed through the exchange server.

Any Ideas?

I found a howto, but the mail will not be send cause sendmail couldn't find the dns hostname of the exchange server. :(

Thanks a lot
Top
Liathus
Apprentice
Apprentice
User avatar
Posts: 163
Joined: Fri Mar 21, 2003 3:19 am
Location: Fargo, ND

  • Quote

Post by Liathus » Fri Aug 15, 2003 5:56 am

You will need to turn smtp relaying on for the IP address of the machine running sendmail.
After that you will need to tell sendmail to use the exchange server to deliver messages instead of doing so directly. You can do this in sendmail.cf or if you are scared of that file like me you could use webmin :)
Top
-leliel-
Apprentice
Apprentice
Posts: 294
Joined: Sat May 03, 2003 6:51 pm
Location: Germany

  • Quote

Post by -leliel- » Fri Aug 15, 2003 7:07 am

this is a part of the logfile:
Aug 14 18:08:10 proxy2 sendmail[9337]: alias database /etc/aliases rebuilt by root
Aug 14 18:08:10 proxy2 sendmail[9337]: /etc/aliases: 40 aliases, longest 10 bytes, 395 bytes total
Aug 14 18:08:10 proxy2 sendmail[9350]: starting daemon (8.11.6): SMTP+queueing@01:00:00
Aug 14 18:08:32 proxy2 sendmail[9354]: h7EG8Tu09354: from=root, size=6, class=0, nrcpts=1, msgid=<200308141608.h7EG8Tu09354@localhost.localdomain>, relay=root@localhost
Aug 14 18:08:32 proxy2 sendmail[9354]: h7EG8Tu09354: to=test@domain.com, ctladdr=root (0/0), delay=00:00:03, xdelay=00:00:00, mailer=esmtp, pri=30006, relay=172.20.1.78, dsn=5.1.2, stat=Host unknown (Name server: 172.20.1.78: host not found)
I also changed /etc/nsswitch.conf:

hosts: files [NOTFOUND=continue] dns

to search the /etc/hosts firstly but it's not working at all. :(
Top
kashani
Advocate
Advocate
User avatar
Posts: 2030
Joined: Mon Sep 02, 2002 6:38 am
Location: San Francisco
Contact:
Contact kashani
Website

  • Quote

Post by kashani » Fri Aug 15, 2003 4:47 pm

Looks like DNS resoltuion problems. Add an entry for the 172.x.x.x machine into your /etc/hosts and then change your smart relay to the host name you've entered.

kashani
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Top
thorne
Apprentice
Apprentice
User avatar
Posts: 177
Joined: Thu Sep 19, 2002 7:33 am
Contact:
Contact thorne
Website

  • Quote

Post by thorne » Wed May 12, 2004 9:43 pm

-leliel- wrote:I found a howto, but the mail will not be send cause sendmail couldn't find the dns hostname of the exchange server. :(
Hi... could you post a link to this how-to? I'm trying to setup bugzilla to go through an exchange server, but it only works with sendmail (or so I have read,) so I would like to know how to do this.

Thanks.
Stupid bug, you go squish now!
-Homer Simpson

Registered linux user #287718
Top
Post Reply

7 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy