Re: [xmail] sendmail -io -t not working

2011-07-26 Thread Sabahattin Gucukoglu
On 21 Jul 2011, at 06:52, Marin, Patricia wrote:
 When I am using sendmail -io -t on a perl script or command line, the mail 
 never get send but when I add -femail email is send.  The  configuration I 
 have is windows with apache2triad from 2006.

XMail's sendmail interface is a bit different than most others; check the docs. 
 Also check that your script is giving the mail in on stdin; I know for a fact 
that Win32 does not handle pipes with grace.  It may be easier to just convert 
to the use of SMTP on localhost:25.

Cheers,
Sabahattin
___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] Sendmail

2010-10-05 Thread Sergio C.
Ops!!!
It's works.
Thank you very much and sorry about my silly question.
Bye.
Sergio bh

2010/10/4 Ivo Smits i...@ufo-net.nl

  Try this:
 bin/sendmail -fFROM_MAIL_ADDRESS --xinput-file /tmp/test
 TO_MAIL_ADDRESS
 (input, not imput - it will not understand and try to read the email from
 the console)

 Ivo

 Op 4-10-2010 17:55, Sergio C. schreef:

 I'm having a trouble with xmail sendmail program.
 After exporting MAIL_ROOT, I running this command from MAIL_ROOT directory:
 bin/sendmail -fFROM_MAIL_ADDRESS --ximput-file /tmp/test
 TO_MAIL_ADDRESS
 At this point the shell is hold.
 If I digit . (dot) and return, the prompt become ok but no message is sent.
 The xmail debug output is (after . imput):
 
 ErrCode   = -55
 ErrString = Invalid spool file
 Unable to load spool file
 /var/MailRoot/spool/1/7/mess/1286201189044.ad452b90.2f19.2b.gordian
 SMTP-Error = 554 Error loading spool file
 
 
 ErrCode   = -55
 ErrString = Invalid spool file
 Unable to load spool file
 /var/MailRoot/spool/14/10/mess/1286201189032.ad452b90.2f19.2a.gordian
 SMTP-Error = 554 Error loading spool file
 
 LMAIL [00] file processed:
 /var/MailRoot/spool/local/1286201187000.12102.gordian
 Filter run: Sender = FROM_MAIL_ADDRESS Recipient = TO_MAIL_ADDRESS
 Filter = /var/MailRoot/filters/av_filter/av_filter.sh Retcode = 0
 SMAIL SMTP-Send MX = SMTP_SERVER. SMTP = telsey.out From =
 FROM_MAIL_ADDRESSt To = TO_MAIL_ADDRESS

 My environment is:
 Ubuntu server: 9.04
 XMail server: 1.27

 Thank you
 Bye.
 Sergio bh

 --

 Io uso formati 
 standardhttp://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=43485ed
 aperti http://www.odfalliance.org/.

 Per piacere, non obbligarmi ad usare formati proprietari come Microsoft
 Word od Excel.®

 Per leggere gli eventuali allegati: 
 www.openoffice.orghttp://it.openoffice.org/

 Per gli utenti di Microsoft Office® clicca 
 quihttp://sourceforge.net/projects/odf-converter/


 ___
 xmail mailing 
 listxm...@xmailserver.orghttp://xmailserver.org/mailman/listinfo/xmail


 ___
 xmail mailing list
 xmail@xmailserver.org
 http://xmailserver.org/mailman/listinfo/xmail




-- 

Io uso formati 
standardhttp://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=43485ed
aperti http://www.odfalliance.org/.

Per piacere, non obbligarmi ad usare formati proprietari come Microsoft Word
od Excel.®

Per leggere gli eventuali allegati:
www.openoffice.orghttp://it.openoffice.org/

Per gli utenti di Microsoft Office® clicca
quihttp://sourceforge.net/projects/odf-converter/
___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] Sendmail

2010-10-04 Thread Ivo Smits

 Try this:
bin/sendmail -fFROM_MAIL_ADDRESS --xinput-file /tmp/test TO_MAIL_ADDRESS
(input, not imput - it will not understand and try to read the email 
from the console)


Ivo

Op 4-10-2010 17:55, Sergio C. schreef:

I'm having a trouble with xmail sendmail program.
After exporting MAIL_ROOT, I running this command from MAIL_ROOT 
directory:
bin/sendmail -fFROM_MAIL_ADDRESS --ximput-file /tmp/test 
TO_MAIL_ADDRESS

At this point the shell is hold.
If I digit . (dot) and return, the prompt become ok but no message is 
sent.

The xmail debug output is (after . imput):

ErrCode   = -55
ErrString = Invalid spool file
Unable to load spool file 
/var/MailRoot/spool/1/7/mess/1286201189044.ad452b90.2f19.2b.gordian

SMTP-Error = 554 Error loading spool file


ErrCode   = -55
ErrString = Invalid spool file
Unable to load spool file 
/var/MailRoot/spool/14/10/mess/1286201189032.ad452b90.2f19.2a.gordian

SMTP-Error = 554 Error loading spool file

LMAIL [00] file processed: 
/var/MailRoot/spool/local/1286201187000.12102.gordian
Filter run: Sender = FROM_MAIL_ADDRESS Recipient = TO_MAIL_ADDRESS 
Filter = /var/MailRoot/filters/av_filter/av_filter.sh Retcode = 0
SMAIL SMTP-Send MX = SMTP_SERVER. SMTP = telsey.out From = 
FROM_MAIL_ADDRESSt To = TO_MAIL_ADDRESS


My environment is:
Ubuntu server: 9.04
XMail server: 1.27

Thank you
Bye.
Sergio bh

--

Io uso formati standard 
http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=43485 
ed aperti http://www.odfalliance.org/.


Per piacere, non obbligarmi ad usare formati proprietari come 
Microsoft Word od Excel.®


Per leggere gli eventuali allegati: www.openoffice.org 
http://it.openoffice.org/


Per gli utenti di Microsoft Office® clicca qui 
http://sourceforge.net/projects/odf-converter/




___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail
___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] sendmail wrapper, -oi option

2010-03-08 Thread Sabahattin Gucukoglu
On 9 Mar 2010, at 01:34, Davide Libenzi wrote:
On Sun, 7 Mar 2010, Davide Libenzi wrote:
 On Sun, 7 Mar 2010, Sabahattin Gucukoglu wrote:
 What does -F control in XMail?  If used will it override what is already 
 in the From: field?  -f should only change the envelope sender otherwise 
 unless From: doesn't exist, in which case create it.  Sendmail (the real 
 thing) also added Date: and Message-ID, if not present.
 
 Did you actually tried it, before posting this?

TMDA doesn't give control over sendmail's arguments, but actually I tried using 
all options together, and it broke the wrapper:
sendmail -...@somewhere.invalid -F'Real Name' m...@sabahattin-gucukoglu.com

For me this creates a file in spool/temp that is empty, and doesn't move it.  
When I lose the -F, it works just fine.

I didn't try it before asking though because ...

 OTOH I noticed that the documentation about XMail's `sendmail` is quite 
 outdated.  Need to be sync with the implementation.

I checked the sources and the TMDA scripts in the end to work what was 
happening.  Here is the excellent manual page for Courier's sendmail wrapper 
that gives you an idea why I need so many answers:
http://www.courier-mta.org/sendmail.html

Cheers,
Sabahattin

___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] sendmail wrapper, -oi option

2010-03-07 Thread Davide Libenzi
On Sun, 7 Mar 2010, Sabahattin Gucukoglu wrote:

 Please can we have the sendmail wrapper know -oi to be synonymous with 
 -i?  In practice I don't know any program that uses the sendmail 
 SMTP-style end-of-message indicator; you could probably get by just 
 supporting -t and -f.  In the real sendmail, -oi means -O 
 IgnoreDots=True.

The -i and -oi are already synonymous, and -f is already supported.


 What does -F control in XMail?  If used will it override what is already 
 in the From: field?  -f should only change the envelope sender otherwise 
 unless From: doesn't exist, in which case create it.  Sendmail (the real 
 thing) also added Date: and Message-ID, if not present.

Did you actually tried it, before posting this?
XMail adds the Date field, if missing. The MessageID is added 
automatically by LMAIL.
The -F allows to set the envelope and SMTP from (the former if 
missing).


- Davide


___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


[xmail] Re: xmail sendmail, php and shared webhosting

2005-10-16 Thread Dick van der Kaaden

On Saturday 15 October 2005 22:18, Davide Libenzi wrote:
 On Sat, 15 Oct 2005, Dick van der Kaaden wrote:
  What you think about a version of sendmail that has an option to use the
  Fr= om:=20
  header address as smtp mail from. Do you envision any problems with this?
 
  The thing is that the current behavior does not work well in the
  shared=20 hosting environment that we operate for our customers. Most of
  the these=20 sites use php and the php mail function. This function does
  not allow you t= o=20
  set the smtp mail from and it simply calls xmail's sendmail.=20
 
  Sendmail's default behavior is to use [EMAIL PROTECTED] as mail from. This 
  is
  n= ot=20
  very usefull! It will not allow our customers to receive bounces. Setting
  t= he=20
  domain in a virtualhost definition does not help either, since you cannot
  s= et=20
  the username. Asking our customers to create an [EMAIL PROTECTED]
  email=20 address to receive bounces is not very user friendly. Forcing
  them to use a= n=20
  smtp mailer is also not user friendly.=20
 
  I looked at sendmail and worked out how a way to implement this.=20
 
  =2D All rcpt to's are stored in a new temporary file.=20
  =2D No output is sent to szmailfile before having read all email
  headers.=20 =2D While reading thru the headers I set the szmailfrom to
  the address on t= he=20
  =46rom line.=20
  =2D If there is no From line or the From line contains an invalid
  address=20 (according to AddressFromAtPtr) then nothing gets set and
  sendmail will use= =20
  szmailfrom as previously setup in SysGetUserAddress.=20
  =2D After reading the headers, dump the mail from and rcpt to lines.
 
  If you are interested in the code them let me know.

 Dick, isn't it possible to do something on the PHP side?


Sure, you can use all sorts of libraries to send mail via smtp with php. The 
thing is, I cannot prevent my customers from using the php mail function. 

Basically, the change you made, setting the smtp mail from, has an unwanted 
side effect in case the mail bounces. This just generates useless extra mail 
traffic, since I am not at all interested in these bounces. The bounce is 
only usefull for my customer (e.g. the From: header).

All in all it is not a big issue, but having more control over the smtp mail 
from address would be usefull for webserver environments. I do not know if 
many people are using xmail in a setup like ours. 

Dick

 - Davide


 -
 To unsubscribe from this list: send the line unsubscribe xmail in
 the body of a message to [EMAIL PROTECTED]
 For general help: send the line help in the body of a message to
 [EMAIL PROTECTED]

-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: xmail sendmail, php and shared webhosting

2005-10-16 Thread Sönke Ruempler

On 15.10.2005 13:50, Dick van der Kaaden wrote:
 Davide,
 
 What you think about a version of sendmail that has an option to use the 
 From: 
 header address as smtp mail from. Do you envision any problems with this?
 
 The thing is that the current behavior does not work well in the shared 
 hosting environment that we operate for our customers. Most of the these 
 sites use php and the php mail function. This function does not allow you to 
 set the smtp mail from and it simply calls xmail's sendmail. 

It does, if you don't use PHP's safe_mode - see here:

http://php.speedbone.de/manual/en/function.mail.php

Description
bool mail ( string to, string subject, string message [, string
additional_headers [, string additional_parameters]] )


additional_parameters (optional)

The additional_parameters parameter can be used to pass an
additional parameter to the program configured to use when sending mail
using the sendmail_path configuration setting. For example, this can be
used to set the envelope sender address when using sendmail with the -f
sendmail option.

The user that the webserver runs as should be added as a trusted
user to the sendmail configuration to prevent a 'X-Warning' header from
being added to the message when the envelope sender (-f) is set using
this method. For sendmail users, this file is /etc/mail/trusted-users.



So you can use the fifth parameter and [EMAIL PROTECTED] and it's
becoming the Return Path / MAIL_FROM.
-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: xmail sendmail, php and shared webhosting

2005-10-16 Thread Dick van der Kaaden

On Sunday 16 October 2005 17:44, Sönke Ruempler wrote:
 On 15.10.2005 13:50, Dick van der Kaaden wrote:
  Davide,
 
  What you think about a version of sendmail that has an option to use the
  From: header address as smtp mail from. Do you envision any problems with
  this?
 
  The thing is that the current behavior does not work well in the shared
  hosting environment that we operate for our customers. Most of the these
  sites use php and the php mail function. This function does not allow you
  to set the smtp mail from and it simply calls xmail's sendmail.

 It does, if you don't use PHP's safe_mode - see here:

 http://php.speedbone.de/manual/en/function.mail.php


I must admit that I had not RTFM and did not realize it was possible under 
normal operation. Unfortunately, we do use safe mode for our virtual hosts. 
Most of our customers run standard php scripts that occasionally have 
security issues.

Reading the php manual I realized that my change does have a security impact. 
Allowing an arbitrary mail from address from an untrusted source is not a 
good thing. I think it will be better to limit the domain part of the smtp 
mail from to the virtualhost servername. The user part must be configurable. 
I will have to think about this a little longer

Dick

-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: xmail sendmail, php and shared webhosting

2005-10-15 Thread Yiannis Mavroukakis

Dick van der Kaaden wrote:

Davide,

What you think about a version of sendmail that has an option to use the From: 
header address as smtp mail from. Do you envision any problems with this?

The thing is that the current behavior does not work well in the shared 
hosting environment that we operate for our customers. Most of the these 
sites use php and the php mail function. This function does not allow you to 
set the smtp mail from and it simply calls xmail's sendmail. 

Sendmail's default behavior is to use [EMAIL PROTECTED] as mail from. This is 
not 
very usefull! It will not allow our customers to receive bounces. Setting the 
domain in a virtualhost definition does not help either, since you cannot set 
the username. Asking our customers to create an [EMAIL PROTECTED] email 
address to receive bounces is not very user friendly. Forcing them to use an 
smtp mailer is also not user friendly. 

I looked at sendmail and worked out how a way to implement this. 

- All rcpt to's are stored in a new temporary file. 
- No output is sent to szmailfile before having read all email headers. 
- While reading thru the headers I set the szmailfrom to the address on the 
From line. 
- If there is no From line or the From line contains an invalid address 
(according to AddressFromAtPtr) then nothing gets set and sendmail will use 
szmailfrom as previously setup in SysGetUserAddress. 
- After reading the headers, dump the mail from and rcpt to lines.

If you are interested in the code them let me know.

Regards,
Dick
  

IMHO, this is a PHP problem, not Xmail since this falls in PHP's
domain..wouldn't you be better server adding this in PHP
instead of Xmail? The argument could of course be, that many other PHP
applications don't support this, but then again this
PHP's braindeath...
-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: xmail sendmail, php and shared webhosting

2005-10-15 Thread Davide Libenzi

On Sat, 15 Oct 2005, Dick van der Kaaden wrote:

 What you think about a version of sendmail that has an option to use the Fr=
 om:=20
 header address as smtp mail from. Do you envision any problems with this?

 The thing is that the current behavior does not work well in the shared=20
 hosting environment that we operate for our customers. Most of the these=20
 sites use php and the php mail function. This function does not allow you t=
 o=20
 set the smtp mail from and it simply calls xmail's sendmail.=20

 Sendmail's default behavior is to use [EMAIL PROTECTED] as mail from. This is 
 n=
 ot=20
 very usefull! It will not allow our customers to receive bounces. Setting t=
 he=20
 domain in a virtualhost definition does not help either, since you cannot s=
 et=20
 the username. Asking our customers to create an [EMAIL PROTECTED] email=20
 address to receive bounces is not very user friendly. Forcing them to use a=
 n=20
 smtp mailer is also not user friendly.=20

 I looked at sendmail and worked out how a way to implement this.=20

 =2D All rcpt to's are stored in a new temporary file.=20
 =2D No output is sent to szmailfile before having read all email headers.=20
 =2D While reading thru the headers I set the szmailfrom to the address on t=
 he=20
 =46rom line.=20
 =2D If there is no From line or the From line contains an invalid address=20
 (according to AddressFromAtPtr) then nothing gets set and sendmail will use=
 =20
 szmailfrom as previously setup in SysGetUserAddress.=20
 =2D After reading the headers, dump the mail from and rcpt to lines.

 If you are interested in the code them let me know.

Dick, isn't it possible to do something on the PHP side?


- Davide


-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]