Sending mail from the command line only
I'm running a fairly fresh install of Debian, which comes with Exim installed by default (along with a strange lack of a config file). However, I'm unable to send any outgoing emails from the command line with that.
All I'd like is a very unobtrusive MTA (?) that will let me send mail from the command line and nothing else - I don't need to be able to connect from Outlook or have any ports listening to outside connections, etc.
I think I'm making this harder than it should be!
Edit - I'm also not sure on the DNS settings for this - does it require MX records?
4 Replies
mail -s "My Subject" user@example.com < message.txt
dmesg | mutt -s "My Subject" user@example.com
-John
Using either mail or mutt simply results in the error:
>
I've a feeling this is something to do with my DNS configuration, but I don't have any experience with the mail side of things
@acid2000:
Have you tried running eximconfig?
Thanks!