zandbelt wrote:yann78 wrote:>>>> RCPT TO:<"Yannick Mailbox" <yann78essai@free.fr>
Count the number of brackets <,> and you'll notice that there is a formatting error in the mail address...
I would suggest to leave out the "name" part completely.
Hans.
With voicemail.conf :
[default]
5623 => 5421,Yannick Mailbox,yann78essai@free.fr
I have this error:
<<<< 220 smtp6-g19.free.fr ESMTP Postfix
>>>> HELO OpenWrt
<<<< 250 smtp6-g19.free.fr
>>>> MAIL FROM:<Asterisk-Pbx@free.fr>
<<<< 250 Ok
>>>> RCPT TO:<"Yannick Mailbox" <yann78essai@free.fr>
<<<< 501 Bad recipient address syntax
/mnt/sd/usr/sbin/sendmail: unexpected response 501 to RCPT TO command
And with voicemail.conf :
default]
5623 => 5421,,yann78essai@free.fr
I have this error:
<<<< 220 smtp6-g19.free.fr ESMTP Postfix
>>>> HELO OpenWrt
<<<< 250 smtp6-g19.free.fr
>>>> MAIL FROM:<Asterisk-Pbx@free.fr>
<<<< 250 Ok
>>>> RCPT TO:<"" <yann78essai@free.fr>
<<<< 501 Bad recipient address syntax
/mnt/sd/usr/sbin/sendmail: unexpected response 501 to RCPT TO command
Can you help me ?
Is there an error in the sendmail.c file?
_________________________________________________________________________
static void
add_recipient( char* recipient, int len )
{
char buf[1000];
int status;
/* Skip leading whitespace. */
while ( len > 0 && ( *recipient == ' ' || *recipient == '\t' ) )
{
++recipient;
--len;
}
/* Strip off any angle brackets. */
while ( len > 0 && *recipient == '<' )
{
++recipient;
--len;
}
while ( len > 0 && recipient[len-1] == '>' )
--len;
(void) snprintf( buf, sizeof(buf), "RCPT TO:<%.*s>", len, recipient );
send_command( buf );
status = read_response();
if ( status != 250 && status != 251 )
{
(void) fprintf(
stderr, "%s: unexpected response %d to RCPT TO command\n",
argv0, status );
exit( 1 );
}
got_a_recipient = 1;
}
___________________________________________________________________________