|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
get email status (C,C++)Hi.
I use exim4 in Debian Lenny and jwsmtp library as a SMTP client. When I try to send a email with non-existent "from" email address, exim answers 250 OK <HASH>, but don't actually send this email (I believe that "from" email address is bad). How can I determine programmatically (C or C++) that exim4 didn't actually send this email? With SMTP calls to exim, exim configuration or something? Thanks! -- -- ## List details at http://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/ |
|
|
Re: get email status (C,C++)On Mon, Jul 13, 2009 at 01:11:14AM +0300, Dmitry Baryshev wrote:
> Hi. > > I use exim4 in Debian Lenny and jwsmtp library as a SMTP client. When > I try to send a email with non-existent "from" email address, exim > answers 250 OK <HASH>, but don't actually send this email (I believe > that "from" email address is bad). How can I determine > programmatically (C or C++) that exim4 didn't actually send this > email? With SMTP calls to exim, exim configuration or something? > Thanks! By "250 OK <HASH>" do you mean that's the response you get back from the end-of-data "." command? If so, then exim has accepted the message, and "<HASH>" as you call it is actually the exim message ID. Go look for that ID in the exim logs to find out what happened to the message. -- Dave Evans http://djce.org.uk/ http://djce.org.uk/pgpkey -- ## List details at http://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/ |
|
|
Re: get email status (C,C++)2009/7/13 Dave Evans <exim-users-20081202@...>:
> On Mon, Jul 13, 2009 at 01:11:14AM +0300, Dmitry Baryshev wrote: >> Hi. >> >> I use exim4 in Debian Lenny and jwsmtp library as a SMTP client. When >> I try to send a email with non-existent "from" email address, exim >> answers 250 OK <HASH>, but don't actually send this email (I believe >> that "from" email address is bad). How can I determine >> programmatically (C or C++) that exim4 didn't actually send this >> email? With SMTP calls to exim, exim configuration or something? >> Thanks! > > By "250 OK <HASH>" do you mean that's the response you get back from the > end-of-data "." command? If so, then exim has accepted the message, and > "<HASH>" as you call it is actually the exim message ID. Go look for that ID > in the exim logs to find out what happened to the message. > > -- > Dave Evans > http://djce.org.uk/ > http://djce.org.uk/pgpkey > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > > iD8DBQFKWtKGnYOJTU6nkkkRAmI5AJ9JmpG+bcS2069ZJCvcnHAxKbTJDQCfbDyT > onwfxzZh+Y1xTy753OgS7oU= > =N9Dd > -----END PGP SIGNATURE----- > > -- > ## List details at http://lists.exim.org/mailman/listinfo/exim-users > ## Exim details at http://www.exim.org/ > ## Please use the Wiki with this list - http://wiki.exim.org/ > Hi. Does it mean that there is no way to determine email status without parsing logs? I mean that if I have no logs on my box, I won't determine the email status at all? Thanks! -- -- ## List details at http://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/ |
|
|
Re: get email status (C,C++)On 13/07/2009, Dmitry Baryshev <ksquirrel.iv@...> wrote:
> Hi. Does it mean that there is no way to determine email status > without parsing logs? I mean that if I have no logs on my box, I won't > determine the email status at all? Thanks! If you're looking for a separate API that allows you to query the status of a message, there is none. But if your C/C++ code is carrying out the SMTP dialogue with Exim, you can use Exim ACLs to provide feedback to your code within the 2xx, 4xx and 5xx messages. If the real problem is that Exim is accepting messages with bogus 'From' addresses, you can adjust this in an ACL as well. That's where the log suggestion comes in - find out exactly why Exim is not delivering the message and you'll be better informed. Peter -- Peter Bowyer Email: peter@... Follow me on Twitter: twitter.com/peeebeee -- ## List details at http://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/ |
| Free embeddable forum powered by Nabble | Forum Help |