LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Exim setup (https://www.linuxquestions.org/questions/linux-software-2/exim-setup-479460/)

guldo 09-01-2006 11:17 AM

Exim setup
 
Hello
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:
  1. fetchmail retrieves remote email messages;
  2. procmail filters and dispatch maildir-like mail to local directories;
  3. 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:
Code:

$ mail -s "hello" johndoe@gmail.com <letter.txt
fails.

Any help?

guldo 09-01-2006 01:10 PM

Code:

$ mail -s "hello" johndoe@gmail.com <letter.txt

# tail /var/log/exim/mainlog
2006-09-01 20:06:59 1GJDPd-0000Fp-00 == johndoe@gmail.com R=lookuphost defer (-1): host lookup did not complete
2006-09-01 20:08:11 Start queue run: pid=1039
2006-09-01 20:08:11 1GIXzL-0005lo-00 == johndoe@gmail.com routing defer (-42): retry time not reached
2006-09-01 20:08:11 Start queue run: pid=1039
2006-09-01 20:08:11 1GIXzL-0005lo-00 == johndoe@gmail.com routing defer (-42): retry time not reached
[...]
2006-09-01 20:08:11 1Cb5hG-0000AN-00 Message is frozen
[...]
2006-09-01 20:08:11 End queue run: pid=1039


guldo 09-01-2006 01:27 PM

Maybe this could help...

Code:

# dig @192.168.1.1 gmail.com

; <<>> DiG 9.2.4 <<>> @192.168.1.1 gmail.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47764
;; flags: qr rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;gmail.com.                    IN      A

;; ANSWER SECTION:
gmail.com.              10000  IN      A      64.233.161.83

;; Query time: 3 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Fri Sep  1 20:26:36 2006
;; MSG SIZE  rcvd: 43


guldo 09-03-2006 12:12 PM

up........


All times are GMT -5. The time now is 12:33 AM.