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.