Hello,
no problem at all, I think this is the tricky part.
A smtp dialogue between your email client and a smtp server normally
looks like this:
user@box:~? netcat mx1.example.com
220 postfix ESMTP mx1.example.com
helo me.local
250 mx1.example.com
mail from: <[email protected]>
250 2.1.0 Ok
rcpt to: <[email protected]>
450 5.7.1 <[email protected]>: Mailbox Full
The tricky part is writing or finding a console smtp client that gives
you feedback about the 450 error that just happened.
Right now I cannot give you a precise way to do that, but I have basic
understanding of the technology, so I know that it is possible to do so ;-)
I'm looking around in the net, because I think I'll soon have to handle
your problem aswell in my company ;-)
If I can find solution, I'll post it.
regards,
Ruben
Am 21.08.2012 19:20, schrieb Danilo Dionisi:
I'm sorry, how i can to check for the return code of the smtp session?
I've never done :p
Thanks,
Danilo
Il 21/08/12 19:05, Ruben Rögels ha scritto:
Okay, so have a look at "mailcmd=" option in voicemail.conf
"mailbox" will mean a "e-mail-box" in the next lines.
What you need to do is wirting a shell script or what ever to check
for the return code of the smtp session (normally it should be a 450
in case of full mailbox).
In case of "450 mailbox full" whatsoever you need to create a call
file in /var/spool/asterisk/outgoing directing your recipient phone
to a special extension which handles the playback of the "your
mailbox is full" message.
But: this will only work if you deliver the mail directly to the
recipients mail server, if you use a smart host, it will accept the
message and the final recipient server will bounce the mail back to you.
I hope this helps.
regards,
Ruben
Am 21.08.2012 18:52, schrieb Danilo Dionisi:
I'm sorry, I haven't been clear.
I do not have to check the inbox on Asterisk, but I have to check
the free space on a particular mailbox of Exchange software.
It's possible with the pair Asterisk-Sendmail?
Il 21/08/12 18:45, Danny Nicholas ha scritto:
Assuming that you are using the standard 100 message limit, just
check for
INBOX/MSG0100.txt and send the message.
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users