Cuando escribiste sudo sendmailconfig, deberías haber sido solicitado para configurar sendmail.
Como referencia, los archivos que se actualizan durante la configuración se encuentran en lo siguiente (en caso de que desee actualizarlos manualmente):
/etc/mail/sendmail.conf
/etc/cron.d/sendmail
/etc/mail/sendmail.mc
Puede probar sendmail para ver si está configurado y configurado correctamente escribiendo lo siguiente en la línea de comando:
$ echo "My test email being sent from sendmail" | /usr/sbin/sendmail myemail@domain.com
Lo siguiente le permitirá agregar retransmisión smtp a sendmail:
#Change to your mail config directory:
cd /etc/mail
#Make a auth subdirectory
mkdir auth
chmod 700 auth
#Create a file with your auth information to the smtp server
cd auth
touch client-info
#In the file, put the following, matching up to your smtp server:
AuthInfo:your.isp.net "U:root" "I:user" "P:password"
#Generate the Authentication database, make both files readable only by root
makemap hash client-info < client-info
chmod 600 client-info
cd ..
Añadir las siguientes líneas a sendmail.mc, pero antes de la MAILERDEFINITIONS. Asegúrese de actualizar su servidor smtp.
define(`SMART_HOST',`your.isp.net')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
FEATURE(`authinfo',`hash -o /etc/mail/auth/client-info.db')dnl
Invocar creación sendmail.cf (ejecutar alternativamente make -C /etc/mail):
m4 sendmail.mc > sendmail.cf
Reinicia el demonio sendmail:
service sendmail restart