Are e-mails to localhost logged with sSMTP?
0
votes
1
answer
105
views
I don't suppose that sSMTP will work for just sending mail on the localhost?
nicholas@mordor:~$
nicholas@mordor:~$ sudo cat /etc/ssmtp/ssmtp.conf
#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=postmaster
# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=mail
# Where will the mail seem to come from?
#rewriteDomain=
# The full hostname
hostname=mordor.saundersconsulting.tech
# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
#FromLineOverride=YES
nicholas@mordor:~$
nicholas@mordor:~$ sudo cat /etc/ssmtp/revaliases
# sSMTP aliases
#
# Format: local_account:outgoing_address:mailhub
#
# Example: root:your_login@your.domain:mailhub.your.domain[:port]
# where [:port] is an optional port number that defaults to 25.
nicholas@mordor:~$
nicholas@mordor:~$ swaks --to root@mordor.saundersconsulting.tech --from nicholas@mordor.saundersconsulting.tech --server mordor.saundersconsulting.tech
=== Trying mordor.saundersconsulting.tech:25...
*** Error connecting to mordor.saundersconsulting.tech:25:
*** IO::Socket::INET6: connect: Connection refused
nicholas@mordor:~$
nicholas@mordor:~$ hostname
mordor.saundersconsulting.tech
nicholas@mordor:~$
nicholas@mordor:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 23.10
Release: 23.10
Codename: mantic
nicholas@mordor:~$
There's no mention of anything except for gmail in mail.log and mail.err which were attempted previously. To my understanding sSMTP only will relay e-mail.
notable result:
nicholas@mordor:~$
nicholas@mordor:~$ ssmtp nicholas@mordor.saundersconsulting.tech
subject:ping
ssmtp: Cannot open mail:25
nicholas@mordor:~$
that sSMTP cannot open port 25?
Asked by Nicholas Saunders
(565 rep)
Dec 19, 2023, 01:33 PM
Last activity: Dec 19, 2023, 02:10 PM
Last activity: Dec 19, 2023, 02:10 PM