I can already send emails using mutt, but I want to know the IP of the SMTP server that mutt is using, where should I search for this IP ?
"Where to find the IP of the server that handles the mail after sending?"
As per zhenech's comment that
sendmail, I found this page which might (?) help answer that question:
(I'm on CentOS, related to RHEL)
4.1) By default sendmail configuration files are located at /etc/mail.
4.2) By default sendmail listen on local interface i.e 127.0.0.1, check using this command:
# ps -ef | grep -v grep | grep -i sendmail root 3595 1 0 00:20 ? 00:00:00 sendmail: accepting connections smmsp 3604 1 0 00:20 ? 00:00:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue # netstat -an | grep :25 | grep tcp tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
4.3) To configure the sendmail to listen to all interface at the host, just comment the following line in “sendmail.mc”:
# vi /etc/mail/sendmail.mc From: DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl To dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
Didn't actually help me though, since none of the files that article reference exist on my system, but maybe it will help you or someone else.