View previous topic :: View next topic |
Author |
Message |
patman n00b
Joined: 11 May 2003 Posts: 32
|
Posted: Thu Mar 18, 2004 2:46 am Post subject: mail command question |
|
|
Folks -
I have an auto-responder in my procmail config. It runs a script and pipes the output through the following command:
$FROM is a variable that's known to work.
Here's the issues. When I run the above mail command, the message seems to get stuck in the outgoing queue. I get the following response from 'mailq'(sanitized) -
Quote: |
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
1FCE8DFA5C 330 Wed Mar 17 21:34:47 patman@my.server
(connect to mail2.recipient.com[216.xx.xx.xx]: No route to host)
patman@other.server
-- 0 Kbytes in 1 Request.
|
If I send mail with my usual mail program, pine, it works fine. Receiving mail works fine.
I'm using postfix 2.0.19, stock from Portage. Does anyone have any clue what might be happening here? |
|
Back to top |
|
|
Cocker68 Apprentice
Joined: 16 Jan 2003 Posts: 227 Location: Germany
|
Posted: Thu Mar 18, 2004 11:14 am Post subject: |
|
|
*eh* the problem is written there in plain text: Quote: | connect to mail2.recipient.com[216.xx.xx.xx]: No route to host | Try using the commands Code: | formail -r
sendmail -t | instead. formail -r creates a valid reply, and sendmail -t searches for recipients in the mail-header.
My procmail-recipe to generate an autoreply is Code: | # autoreply
:0 c: /var/lock/autoreply
* !^X-Loop: autoreply
* ^Subject: *(echo request|echo-request|echorequest|auto reply|auto-reply|autoreply) *$
| ( cat - > /tmp/autoreply; \
cat /tmp/autoreply | formail -r -I"Precedence: junk" -A "X-Loop: autoreply" ; \
echo "You requested an echo of your e-mail"; \
echo -e "This is, what I received:\n"; \
echo -e "\n---echo-reply begin-----------------------------------------------------"; \
cat /tmp/autoreply; \
rm -f /tmp/autoreply; \
echo "---echo-reply end-------------------------------------------------------" ) | $SENDMAIL -t | - Cocker :wq |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|