LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   RHEL 4 AS Using 3rd-Party Mail Relay: Config Help Needed (https://www.linuxquestions.org/questions/linux-server-73/rhel-4-as-using-3rd-party-mail-relay-config-help-needed-797805/)

SteveInTallyFL 03-25-2010 10:09 AM

RHEL 4 AS Using 3rd-Party Mail Relay: Config Help Needed
 
Application on this server will generate messages to user and use mailx to format them. We are using Sendmail as the MTA. The server is not in a domain. We are using a Rackspace email account as the relay. The server talks to a DNS that has an mx record pointing to Rackspace.

Code:

# dig emailsrvr.com mx

; <<>> DiG 9.2.4 <<>> emailsrvr.com mx
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61132
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;emailsrvr.com.                IN      MX

;; ANSWER SECTION:
emailsrvr.com.          28800  IN      MX      20 mx2.emailsrvr.com.
emailsrvr.com.          28800  IN      MX      10 mx1.emailsrvr.com.

;; Query time: 53 msec
;; SERVER: 10.200.14.10#53(10.200.14.10)
;; WHEN: Thu Mar 25 10:25:43 2010
;; MSG SIZE  rcvd: 71

Sendmail has SMARTHOST configured:
Code:

define(`SMART_HOST',`smtp.emailsrvr.com')dnl
dnl #
define(`confDEF_USER_ID',``8:12'')dnl
dnl define(`confAUTO_REBUILD')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST',true)dnl
define(`confDONT_PROBE_INTERFACES',true)dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`STATUS_FILE', `/var/log/mail/statistics')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A')dnl

I know that Rackspace requires authentication using base64 password encryption, but I do not know what to do within Sendmail or outside it to accomplish this requirement. I think this is probably incorrect:
Code:

dnl # The following allows relaying if the user authenticates, and disallows
dnl # plaintext authentication (PLAIN/LOGIN) on non-TLS links
dnl #
dnl define(`confAUTH_OPTIONS', `A p')dnl

From other posts It appears that the file /etc/mail/access plays a role in this. Currently it looks like this:
Code:

# Check the /usr/share/doc/sendmail/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
# package.
#
# by default we allow relaying from localhost...
localhost.localdomain          RELAY
localhost                      RELAY
127.0.0.1                      RELAY

But I have no idea what I would do different since all the examples I have seen on this are based on plain test password.

Any insight/assistance will be appreciated.

spampig 03-25-2010 03:50 PM

You are looking to do SMTP AUTH with Sendmail as a client to the smarthost. Take a look at this post:

http://www.linuxquestions.org/questi...3/#post1144343

and scroll down/search for the title 'Client-Side SMTP AUTH + SMART_HOST'.

There is a difference in PLAIN-v-LOGIN with SMTPAuth be mindful to pick one that is supported in the EHLO of the Rackspace server. HTH.


All times are GMT -5. The time now is 10:10 AM.