Re: Strange problem in SMTP communication

2010-04-12 Thread Emanuele Gallo
I don't think that it's the problem. My mail server is developed in C language and replies that I send to Postfix are strings. As I think you know, all strings in C are NULL terminated and there's no chance for create string that aren't NULL terminated. Moreover, as previously mentioned, my ser

Re: Strange problem in SMTP communication

2010-04-12 Thread mouss
Emanuele Gallo a écrit : > I don't think that it's the problem. My mail server is developed in C > language and replies that I send to Postfix are strings. As I think you > know, all strings in C are NULL terminated and there's no chance for > create string that aren't NULL terminated. 1- data sen

Re: Strange problem in SMTP communication

2010-04-12 Thread Emanuele Gallo
Thanks a lot. In fact I've tried to send string not NULL-terminated and now Postfix replies me correctly. I would never understand. I'll change all reply strings in my program (hoping I'm not compromise the functioning with other mail clients). Bye. Il 12/04/2010 12:40, mouss ha scritto: Ema

Re: building Postfix 2.7 from source Help!

2010-04-12 Thread john
On 12/04/2010 2:20 AM, ram wrote: On Sun, 2010-04-11 at 19:51 -0400, john wrote: i am attempting to build Postfix from the source rpms, I think I have worked out how to set the various parameters to get the options I want. except I don't see how to make this a x86_64 install. What am i missing?

Re: Strange problem in SMTP communication

2010-04-12 Thread Wietse Venema
Emanuele Gallo: > I don't think that it's the problem. My mail server is developed in C > language and replies that I send to Postfix are strings. As documented in RFC documents from 20 years ago, SMTP requires that lines end in . > As I think you > know, all strings in C are NULL terminated a

Re: Patch: support BURL

2010-04-12 Thread Mike Abbott
>> +if (in_stream == NULL) { >> +/* must fail the entire transaction */ >> +chat_reset(state, var_smtpd_hist_thrsh); >> +mail_reset(state); >> +rcpt_reset(state); >> +return -1; >> +} > > Why no response to the client? The function imap_open() respo

RE: amavis Delivery status notification(DSN) failing

2010-04-12 Thread Sharma, Ashish
Andreas, Thanks for the suggestion, On comparison I found this http://code.google.com/p/subethasmtp/ to be more appropriate(lightweight and easy to use for a simple postfix content filter) than the heavyweight Apache James. Ashish Sharma -Original Message- From: owner-postfix-us...@p

Re: Patch: support BURL

2010-04-12 Thread Mike Abbott
> In the mean time, the authors may want to enforce strict sanity > checks on IMAP server output such as the reply payload length, and > also make sure that their vstream_limit code behaves when reads > are alternated with writes (either refuse to allow read/write/read, > or enforce the limit as pr

Re: Patch: support BURL

2010-04-12 Thread Victor Duchovni
On Mon, Apr 12, 2010 at 08:56:17AM -0500, Mike Abbott wrote: > >> + case SMTP_ERR_EOF: > >> + smtpd_chat_reply(state, "554 4.6.6 EOF from IMAP server"); > >> + vstream_longjmp(state->client, SMTP_ERR_QUIET); > >> + break; > > > > Why is the DSN code 4.X.X when the SMTP reply code

Re: Patch: support BURL

2010-04-12 Thread Charles Marcus
On 2010-04-12 10:24 AM, Mike Abbott wrote: > Because the message in the IMAP server is brand-new, having just been > composed by the user. For instance: > 1. As the user composes a new message, the MUA saves the new message > in the IMAP "Drafts" mailbox, possibly by using CATENATE (RFC 4469) > an

Re: Patch: support BURL

2010-04-12 Thread Charles Marcus
On 2010-04-12 11:03 AM, Charles Marcus wrote: > On 2010-04-12 10:24 AM, Mike Abbott wrote: >> Because the message in the IMAP server is brand-new, having just been >> composed by the user. For instance: >> 1. As the user composes a new message, the MUA saves the new message >> in the IMAP "Drafts"

Re: Patch: support BURL

2010-04-12 Thread Mike Abbott
> How would this work for messages that are never saved to the Drafts folder? Then instead the message could be saved to the Sent folder instead, and the submission server could fetch it from there. The MUA would have to remove it from the Sent folder if sending failed, of course. Nothing magi

Re: Patch: support BURL

2010-04-12 Thread Victor Duchovni
On Sat, Apr 10, 2010 at 09:19:50AM -0400, Wietse Venema wrote: > So this is really about sending yourself mail via IMAP, instead of > listing yourself in the Cc: address box. Email Cc'd to the user does not necessarily arrive in the Sent folder (it does for Gmail users, but Gmail's "folders" have

Re: Patch: support BURL

2010-04-12 Thread Mike Abbott
> This interpretation is incorrect, the 3-digit SMTP code, must match the > 3-part DSN code. For transient errors use 454. Thank you.

Re: Patch: support BURL

2010-04-12 Thread Charles Marcus
On 2010-04-12 11:16 AM, Mike Abbott wrote: >> How would this work for messages that are never saved to the Drafts >> folder? > > Then instead the message could be saved to the Sent folder instead, and > the submission server could fetch it from there. The MUA would have to > remove it from the Se

Re: Patch: support BURL

2010-04-12 Thread Victor Duchovni
On Mon, Apr 12, 2010 at 11:50:02AM -0400, Charles Marcus wrote: > There is no IMAP client that I'm aware of that can 'save' a message to > to the Sent folder. They all do it, that's how messages end up in the Sent folder, you are confused. -- Viktor. P.S. Morgan Stanley is looking for

Re: Patch: support BURL

2010-04-12 Thread Steve
Original-Nachricht > Datum: Mon, 12 Apr 2010 11:53:10 -0400 > Von: Victor Duchovni > An: postfix-users@postfix.org > Betreff: Re: Patch: support BURL > On Mon, Apr 12, 2010 at 11:50:02AM -0400, Charles Marcus wrote: > > > There is no IMAP client that I'm aware of that can 'sav

Re: Strange problem in SMTP communication

2010-04-12 Thread Emanuele
I know that NULL is there to indicate end of a string. But why if I do: send(SMTPSocket,session->reply,strlen(session->reply)); // session->reply is where I wrote the response code that ends with \r\n\0 it also sends '\0'? strlen() shouldn't count \0, but Postfix receives '\0'. However, I've

Re: Patch: support BURL

2010-04-12 Thread Simon Waters
On Monday 12 April 2010 16:53:10 Victor Duchovni wrote: > On Mon, Apr 12, 2010 at 11:50:02AM -0400, Charles Marcus wrote: > > There is no IMAP client that I'm aware of that can 'save' a message to > > to the Sent folder. > > They all do it, that's how messages end up in the Sent folder, you > are c

Re: Patch: support BURL

2010-04-12 Thread Charles Marcus
On 2010-04-12 11:53 AM, Victor Duchovni wrote: > On Mon, Apr 12, 2010 at 11:50:02AM -0400, Charles Marcus wrote: > >> There is no IMAP client that I'm aware of that can 'save' a message to >> to the Sent folder. > > They all do it, that's how messages end up in the Sent folder, you > are confused

Re: Strange problem in SMTP communication

2010-04-12 Thread Victor Duchovni
On Mon, Apr 12, 2010 at 06:02:49PM +0200, Emanuele wrote: > I know that NULL is there to indicate end of a string. But why if I do: > > send(SMTPSocket,session->reply,strlen(session->reply)); // session->reply > is where I wrote the response code that ends with \r\n\0 > > it also sends '\0'?

Re: Patch: support BURL

2010-04-12 Thread Charles Marcus
On 2010-04-12 11:56 AM, Steve wrote: > But you are right. All the other clients that I know save the message > on the server or at least are able to save the message on the server. > I never managed to do that with Outlook without fancy macros/rules. Outlook 2007 finally allows you to Save to a Se

Re: Patch: support BURL

2010-04-12 Thread Victor Duchovni
On Mon, Apr 12, 2010 at 12:09:40PM -0400, Charles Marcus wrote: > On 2010-04-12 11:53 AM, Victor Duchovni wrote: > > On Mon, Apr 12, 2010 at 11:50:02AM -0400, Charles Marcus wrote: > > > >> There is no IMAP client that I'm aware of that can 'save' a message to > >> to the Sent folder. > > > > Th

Re: Patch: support BURL

2010-04-12 Thread Charles Marcus
On 2010-04-12 12:03 PM, Simon Waters wrote: > Some days I think starting again from scratch with software would be a good > idea, then I remember how quickly I can code Timo (dovecot author) has expressed interest in maybe someday coding an IMAP client from scratch... one can only hope... ;)

All my email are 5 minutes delayed

2010-04-12 Thread Alexis Ducastel
Hello, I've postfix width dkim-filter installed. Each mail sent from sendmail , or coming from internet before to be forwarded are delayed of 5 min. Not 4'30, not 5'10 ... but exactly 5 min ! according to received headers, it seems like postfix keep it 5 min after dkim doing signature. I searched

Re: All my email are 5 minutes delayed

2010-04-12 Thread Charles Marcus
On 2010-04-12 12:13 PM, Alexis Ducastel wrote: > Does anybody knows where is the problem please ? Per the welcome message you received when you joined the list: TO REPORT A PROBLEM see: http://www.postfix.org/DEBUG_README.html#mail At a minimum, postfix version, output of postconf -n and unedit

Re: Patch: support BURL

2010-04-12 Thread Timo Sirainen
On Mon, 2010-04-12 at 11:17 -0400, Victor Duchovni wrote: > I too would have expected a new IMAP extension that would allow the IMAP > client to ask the IMAP server to post the message. I don't know why this > route was not taken. Lemonade group discussed this in their "push vs pull" arguments. I

Re: Strange problem in SMTP communication

2010-04-12 Thread Wietse Venema
Emanuele: > I know that NULL is there to indicate end of a string. But why if I do: > > send(SMTPSocket,session->reply,strlen(session->reply)); // session->reply > is where I wrote the response code that ends with \r\n\0 > > it also sends '\0'? > > strlen() shouldn't count \0, but Postfix rece

Re: Patch: support BURL

2010-04-12 Thread Timo Sirainen
On Mon, 2010-04-12 at 12:13 -0400, Charles Marcus wrote: > On 2010-04-12 12:03 PM, Simon Waters wrote: > > Some days I think starting again from scratch with software would be a good > > idea, then I remember how quickly I can code > > Timo (dovecot author) has expressed interest in maybe som

Re: Strange problem in SMTP communication

2010-04-12 Thread Emanuele Gallo
Thanks a lot. I'll try to do these changes. Bye. Il 12/04/2010 19:04, Wietse Venema ha scritto: Emanuele: I know that NULL is there to indicate end of a string. But why if I do: send(SMTPSocket,session->reply,strlen(session->reply)); // session->reply is where I wrote the response code

Migrating large virtual domains Re: Migrating from postfix to Exim

2010-04-12 Thread The Doctor
On Sun, Apr 11, 2010 at 09:52:12AM -0300, Reinaldo de Carvalho wrote: > On Sun, Apr 11, 2010 at 9:44 AM, The Doctor wrote: > > Hello, I am trying to migrate first my outgoing mail server  from > > postfix 2.7.0 to exim 4.71 . > > > > ? > > > I got most of it except that when I send mail locally

Sending bounce notifications to postmaster

2010-04-12 Thread Stephen Carville
I need user non-delivery notifications to be CCed to postmaster. At least the headers need to be sent. Right I have the double bounces being sent by adding "2bounce" to notify_classes. I tried adding "bounce" to notify_classes but that seemed to send an email for every time postfix rejected a

Re: All my email are 5 minutes delayed

2010-04-12 Thread mouss
Alexis Ducastel a écrit : > Hello, > > I've postfix width dkim-filter installed. Each mail sent from sendmail , > or coming from internet before to be forwarded are delayed of 5 min. > Not 4'30, not 5'10 ... but exactly 5 min ! according to received > headers, it seems like postfix keep it 5 min a

Re: Sending bounce notifications to postmaster

2010-04-12 Thread Wietse Venema
Stephen Carville: > I need user non-delivery notifications to be CCed to postmaster. At > least the headers need to be sent. Right I have the double bounces > being sent by adding "2bounce" to notify_classes. I tried adding > "bounce" to notify_classes but that seemed to send an email for ever

Re: Patch: support BURL

2010-04-12 Thread Charles Marcus
On 2010-04-12 1:05 PM, Timo Sirainen wrote: > Not my client and not really even usable yet, but it started with the > right ideas: http://trojita.flaska.net/ > > I could see myself continuing it instead of starting from scratch.. Like I said, one can only hope... but I'm conflicted... too bad you

Re: Sending bounce notifications to postmaster

2010-04-12 Thread Stephen Carville
On Mon, Apr 12, 2010 at 12:30 PM, Wietse Venema wrote: > Assuming that you aren't sending these to your primary inbox, you > could use a simple pipe-to-command filter that drops "transcript > of session follows" notices if you don't want to see bounce reports > for inbound mail. Thank you. FTTB

Postfix compile on OS X 10.6

2010-04-12 Thread Jim Wright
I'm setting up a new server completely from scratch on Snow Leopard, Mac OS X 10.6.3, trying to compile Postfix 2.7. During make, I get this: In file included from dns_lookup.c:152: dns.h:23:29: error: nameser8_compat.h: No such file or directory make: *** [dns_lookup.o] Error 1 make: *** [u

Cyrus-IMAPD, Postfix, LDAP, spamc and aliases

2010-04-12 Thread take
Hello! I'm building an fresh multidomain environment with Debian Lenny. I've installed and configured postfix, spamc and cyrus-imapd and things are running almost smoothly. I can send email everywhere just fine via SMTPS, including my own host. Since I'm on a testing stage I haven't tried to actu

TLS Exception for Remote Sender

2010-04-12 Thread Franck MAHE
Hi, My postfix is configured to accept TLS communication in opportunistic mode. It works fine but I've some trouble with one remote SMTP server (the result is my account is desactivated as they are not able to send me emails - TLS Error). How to force some remote smtp server not to use TLS? I f

Re: TLS Exception for Remote Sender

2010-04-12 Thread Victor Duchovni
On Tue, Apr 13, 2010 at 06:38:06AM +, Franck MAHE wrote: > How to force some remote smtp server not to use TLS? I found the way > for me to use the clear communication to send emails to specific domains, > but I'm not able to find a solution for my issue. Any clue? http://www.postfix.org