Hello everyone,
I have an OpenVZ VPS on hostus with Slackware64-14.2 on it, I'm trying to configure sendmail to manage only the outgoing queue using an smtp server from namecheap.
I've read a ton of how-tos about this particular purpose, even a few old threads here on lq, but so far I'm stuck.
Here's what I did, on a fresh install of sendmail I've created the directory /etc/mail/auth, inside of it I've put the file client-info with this line in it:
Code:
AuthInfo:your.isp.net "U:root" "I:emailuser" "P:emailpassword"
created the database with:
Code:
makemap hash client-info < client-info
and set the two files like this:
Code:
-rw------- 1 root root 75 May 7 17:52 client-info
-rw------- 1 root root 12K May 7 17:56 client-info.db
I've used the sendmail-slackware.mc to build a cf, I added the lines
Code:
define(`SMART_HOST',`your.isp.net')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl
and then I did:
Code:
m4 sendmail-slackware.mc > slack.cf
backed up the original sendmail.cf shipped with the package and substituted it with my version of it.
started the server and /var/log/maillog says that the server has started, but when I tested it with:
Code:
sendmail -vt < testmail.txt
maillog stated:
Code:
May 7 18:04:54 danix sendmail[23249]: w47G4sjL023249: from=root, size=139, class=0, nrcpts=1, msgid=<201805071604.w47G4sjL023249@mysite.net>, relay=root@localhost
May 7 18:04:54 danix sendmail[23249]: w47G4sjL023249: to=my@email.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30139, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
I'm not really sure how to read that log, but I think it shouldn't say that the relay is localhost, but I have no idea of what to modify.
Could you please point me in the right direction?