I'm trying to send mail using just mail, or exim, or sendmail; that's just the same, right?
Anyway, I'd just like to send mail out, not only locally.
I just should hand mail to my ISP SMTP server for it to manage delivery.
I searched the forum, but found just threads about implementing a local SMTP server; what I'm after, is just to send mail via my ISP, that is, what any end-user email client does.
But I can't.
What I'm trying to do is:
- fetchmail retrieves remote email messages;
- procmail filters and dispatch maildir-like mail to local directories;
- for certain accounts, mail should also be delivered to a remote address (gmail).
Steps 1 and 2 work; but when procmail is supposed to hand mail to sendmail, then I get exim complaining that the host can't be found, or unrouted.
I searched the web, but I couldn't understand what's wrong.
I can send mail using a client such as thunderbird, and I expected exim to be able to do just about the same thing, when invoked by procmail. But I can't understand how can I configure it properly.
I can't send mail from commandline either; something like:
$ mail -s "hello" email@example.com <letter.txt