Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Let me give a quick overview of what I am doing here. I have an A server running Linux (CentOS) and Asterisk. There are a few other services running to support it such as Apache, OpenSSH, Sendmail, etc. This server accepts all of our analog phone lines, and creates a phone system that our internal IP phones can connect to.
What I am now setting up is a simple system that emails and/or pages one of our employees when they recieve a voicemail message. Asterisk is built to do this by default - it simply uses Sendmail to send mail from itself (Which by default is something like asterisk1.local, I have reconfigured this to be our own domain and hostname). For the most part, this works just fine - Problem is, since it is sending messages directly, some of the emails are being rejected - for example if an employee wishes to have the alert sent to a Comcast account. It is being rejected because the server is behind a firewall on a NAT, with a 192.168.x.x address. The Comcast server will see the 208.65.xxx.xxx address of our NAT, which reverses to something like eth2.mhtxxxx.xxxx.perusesoftware.net - So naturally, the connection is rejected
What I need to do to make this work, is force the server to relay mail through my existing mail server - which is mail.perusesoftware.net. This server requires SMTP authentication even if the domain is local, and several other security measures. Because this server has its own fully routable IP, and a proper reverse to go along with it, it has no issues sending messages.
So to simplify my ranting - I need to know how to make Sendmail relay through another existing email server - this server will require SMTP authentication credentials to be provided by the Asterisk box running Sendmail (I believe it is often refered to as a "smart server")