Re: [courier-users] mailbot and -T forward / forwardatt

2011-01-18 Thread Jani Ollikainen
On 17.01.2011 15:48, Sam Varshavchik wrote:
 You should have $SENDER available.
 And, once again, make sure that you fully understand how all your
 manufactured shell scripting needs to quote its variables. Otherwise,
 you'll have an exploitable security hole on your hands.

Well, I didn't see the sender's email in any variable when doing
`set /tmp/log.txt`.

I added before that a line:
MAILTO=escape($SENDER)

And now I did have in /tmp/log.txt:
MAILTO=

But no SENDER or anything else to use with mailbot. So if
I should have it, why I don't have it?

DEFAULTDELIVERY=|| /usr/lib/courier/bin/dotforward
| /usr/lib/courier/bin/maildrop -w 90


-- 
Yhteistyöterveisin,
Jani Ollikainen @ Pronetko Networks Oy

--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] mailbot and -T forward / forwardatt

2011-01-18 Thread Bowie Bailey
On 1/18/2011 3:00 AM, Jani Ollikainen wrote:
 On 17.01.2011 15:48, Sam Varshavchik wrote:
 You should have $SENDER available.
 And, once again, make sure that you fully understand how all your
 manufactured shell scripting needs to quote its variables. Otherwise,
 you'll have an exploitable security hole on your hands.
 Well, I didn't see the sender's email in any variable when doing
 `set /tmp/log.txt`.

 I added before that a line:
 MAILTO=escape($SENDER)

 And now I did have in /tmp/log.txt:
 MAILTO=

 But no SENDER or anything else to use with mailbot. So if
 I should have it, why I don't have it?

 DEFAULTDELIVERY=|| /usr/lib/courier/bin/dotforward
 | /usr/lib/courier/bin/maildrop -w 90

Have you tried importing the variable?

import SENDER

-- 
Bowie

--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] mailbot and -T forward / forwardatt

2011-01-17 Thread Jani Ollikainen
On 15.01.2011 03:40, Sam Varshavchik wrote:
 # cat testmail.txt | /usr/lib/courier/bin/mailbot -T forward -c UTF-8
 -t reply.txt -A 'From: u...@example.org' -s 'Test'
 511 Headers specify no receipients.
 sendmail: Unable to submit message.

 But without -T parameters it works
 # cat testmail.txt | /usr/lib/courier/bin/mailbot -c UTF-8 -t
 reply.txt -A 'From: u...@example.org' -s 'Test'
 A forward is not a reply. -T controls not just how the content of the
 generated message is formatted, but also the headers.
 When you hit the Forward menu item or button in your mail client, the
 new message comes up without any listed recipients. Same thing here.

Ok, then I would need to add -A 'To: $VARIABLE' to mailbot line in
mailfilter.

After reading documentation there is FROM but This information may or 
may not be available to maildrop on your system.

/etc/courier/courierd:
DEFAULTDELIVERY=|| /usr/lib/courier/bin/dotforward
| /usr/lib/courier/bin/maildrop -w 90

And documentation also says If the -f option is not given, maildrop 
looks for the From_ line in the message..

And when doing `set /tmp/variables.txt` in .mailfilter I don't see
FROM.

So if I would like to use -T forward or -T forwardatt in mailfilter
to send auto replies what is needed?


-- 
Yhteistyöterveisin,
Jani Ollikainen @ Pronetko Networks Oy

--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] mailbot and -T forward / forwardatt

2011-01-17 Thread Sam Varshavchik

Jani Ollikainen writes:


On 15.01.2011 03:40, Sam Varshavchik wrote:

# cat testmail.txt | /usr/lib/courier/bin/mailbot -T forward -c UTF-8
-t reply.txt -A 'From: u...@example.org' -s 'Test'
511 Headers specify no receipients.
sendmail: Unable to submit message.

But without -T parameters it works
# cat testmail.txt | /usr/lib/courier/bin/mailbot -c UTF-8 -t
reply.txt -A 'From: u...@example.org' -s 'Test'

A forward is not a reply. -T controls not just how the content of the
generated message is formatted, but also the headers.
When you hit the Forward menu item or button in your mail client, the
new message comes up without any listed recipients. Same thing here.


Ok, then I would need to add -A 'To: $VARIABLE' to mailbot line in
mailfilter.

After reading documentation there is FROM but This information may or 
may not be available to maildrop on your system.


/etc/courier/courierd:
DEFAULTDELIVERY=|| /usr/lib/courier/bin/dotforward
| /usr/lib/courier/bin/maildrop -w 90

And documentation also says If the -f option is not given, maildrop 
looks for the From_ line in the message..


And when doing `set /tmp/variables.txt` in .mailfilter I don't see
FROM.

So if I would like to use -T forward or -T forwardatt in mailfilter
to send auto replies what is needed?


You should have $SENDER available.

And, once again, make sure that you fully understand how all your 
manufactured shell scripting needs to quote its variables. Otherwise, you'll 
have an exploitable security hole on your hands.




pgpWDbvWPP1r7.pgp
Description: PGP signature
--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


[courier-users] mailbot and -T forward / forwardatt

2011-01-14 Thread Jani Ollikainen
Hi,

Noticed that there's -T in mailbot and I think that those sounds better 
to have the original message as attachment than directly reply to it.

As if the original message is long, reader might not notice the
reply text.

Did some testing:
# cat testmail.txt | /usr/lib/courier/bin/mailbot -T forward -c UTF-8 -t 
reply.txt -A 'From: u...@example.org' -s 'Test'
511 Headers specify no receipients.
sendmail: Unable to submit message.

But without -T parameters it works
# cat testmail.txt | /usr/lib/courier/bin/mailbot -c UTF-8 -t reply.txt 
-A 'From: u...@example.org' -s 'Test'

Why?

Courier is:
courier-0.65.0-1
courier-maildrop-0.65.0-1

-- 
Jani Ollikainen @ Pronetko Networks Oy

--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] mailbot and -T forward / forwardatt

2011-01-14 Thread Sam Varshavchik

Jani Ollikainen writes:


Hi,

Noticed that there's -T in mailbot and I think that those sounds better 
to have the original message as attachment than directly reply to it.


As if the original message is long, reader might not notice the
reply text.

Did some testing:
# cat testmail.txt | /usr/lib/courier/bin/mailbot -T forward -c UTF-8 -t 
reply.txt -A 'From: u...@example.org' -s 'Test'

511 Headers specify no receipients.
sendmail: Unable to submit message.

But without -T parameters it works
# cat testmail.txt | /usr/lib/courier/bin/mailbot -c UTF-8 -t reply.txt 
-A 'From: u...@example.org' -s 'Test'


Why?


A forward is not a reply. -T controls not just how the content of the 
generated message is formatted, but also the headers.


When you hit the Forward menu item or button in your mail client, the new 
message comes up without any listed recipients. Same thing here.




pgpVuXBpAUI7x.pgp
Description: PGP signature
--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users