impossible to send mail with the webGUI

1,152 views
Skip to first unread message

Eric_G

unread,
Oct 28, 2011, 1:33:04 PM10/28/11
to Alt-F
hi guys,

i want to use mail alert on my DNS323.
but when i configure and test it i have an error.
this error is :

msmtp: envelope from address root not accepted by the server
msmtp: server message: 504 5.5.2 <root>: Sender address rejected: need
fully-qualified address
msmtp: could not send mail (account default from /etc/msmtprc)
HTTP/1.0 200 OK
Content-Type: text/html; charset=UTF-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://
www.w3.org/TR/html4/loose.dtd">
<html><head><meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">
<title></title></head><body>
<script type=text/javascript>
alert("Sent mail failed: Oct 28 19:20:51 DNS-323 user.err msmtp:
host=smtp.free.fr tls=off auth=off from=root
recipients=eric.g...@yahoo.fr smtpstatus=504 smtpmsg='504 5.5.2
<root>: Sender address rejected: need fully-qualified address'
errormsg='envelope from address root not accepted by\n")
window.location.assign(document.referrer)
</script>
</body></html>

i think my FAI don't accept mails send with the name root.
how can i change it ? (in webGUI it seems it isn't possible :s)
somebody can help me ?

thanks
Eric

Joao Cardoso

unread,
Oct 29, 2011, 1:57:45 PM10/29/11
to Alt-F
Have you searched the forum for "mail"?

On Oct 28, 6:33 pm, Eric_G <eric.genil...@yahoo.fr> wrote:
> hi guys,
>
> i want to use mail alert on my DNS323.
> but when i configure and test it i have an error.
> this error is :
>
> msmtp: envelope from address root not accepted by the server
> msmtp: server message: 504 5.5.2 <root>: Sender address rejected: need
> fully-qualified address
> msmtp: could not send mail (account default from /etc/msmtprc)
> HTTP/1.0 200 OK
> Content-Type: text/html; charset=UTF-8
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
> <html><head><meta http-equiv="Content-Type" content="text/html;
> charset=UTF-8">
> <title></title></head><body>
> <script type=text/javascript>
>         alert("Sent mail failed: Oct 28 19:20:51 DNS-323 user.err msmtp:
> host=smtp.free.fr tls=off auth=off from=root
> recipients=eric.genil...@yahoo.fr smtpstatus=504 smtpmsg='504 5.5.2

Eric_G

unread,
Oct 30, 2011, 7:43:22 AM10/30/11
to Alt-F
yeah i searched it but only found topics about secured mail.
for the moment i only want to send mail, not in secured mode ... but
doesnt work :s

Eric_G

unread,
Nov 6, 2011, 12:19:19 PM11/6/11
to Alt-F
Hi guys,

nobody can help me about this problem ?
maybe someone can explain me how to diagnostic the problem, step by
step or other method ...

thanks
have a good day

Joao Cardoso

unread,
Nov 6, 2011, 4:19:18 PM11/6/11
to al...@googlegroups.com
On Sunday, November 06, 2011 17:19:19 Eric_G wrote:
> Hi guys,
>
> nobody can help me about this problem ?
> maybe someone can explain me how to diagnostic the problem, step by
> step or other method ...

Anonymous account?

Can you post your /etc/msmtprc? replace the password with xxx, but keep the
the line.

PS-Can I have a free account on that mail server?

Eric_G

unread,
Nov 8, 2011, 2:21:25 PM11/8/11
to Alt-F
so my /etc/msmtprc :

tls_trust_file /etc/ssl/ca-bundle.crt
syslog on
auto_from on
host smtp.free.fr
tls off
auth off
port 25
from eric.g...@yahoo.fr

this file has been complete by the webGUI.
FREE is my internet service provider.

when i used the D-LINK firmware my configuration in webGUI was :

LOGIN Method : anonymous
Port : 25
SMTP server : smtp.free.fr
Sender E-mail : mon...@free.fr
Receiver E-mail : eric.g...@yahoo.fr

this next link permit to see DND-323's emulator :
http://support.dlink.com/emulators/dns323/109/adv_mail_alerts.htm

thanks

Joao Cardoso

unread,
Nov 10, 2011, 1:51:47 PM11/10/11
to Alt-F


On Nov 8, 7:21 pm, Eric_G <eric.genil...@yahoo.fr> wrote:
> so my /etc/msmtprc :
>
> tls_trust_file  /etc/ssl/ca-bundle.crt
> syslog          on
> auto_from       on
> host    smtp.free.fr
> tls             off
> auth    off
> port    25
> from    eric.genil...@yahoo.fr

Please try to send a mail to yourself on free.fr first, using
mon...@free.fr as the send-to, and report back the result.

> this file has been complete by the webGUI.
> FREE is my internet service provider.
>
> when i used the D-LINK firmware my configuration in webGUI was :
>
> LOGIN Method : anonymous
> Port : 25
> SMTP server : smtp.free.fr
> Sender E-mail : mon...@free.fr
> Receiver E-mail : eric.genil...@yahoo.fr

Eric_G

unread,
Nov 19, 2011, 9:09:50 AM11/19/11
to Alt-F
Hi,

so i tried to send an email :

from mon...@free.fr to eric.g...@yahoo.fr ==> i received the mail
on my adress
from eric.g...@yahoo.fr to mon...@free.fr ==> my NAS received my
email

if you need to test it yourself you can create an address on the
server "free" using the following link :

http://www.free.fr/assistance/498-compte-acces-libre.html

sorry it s a french web site :s

what can i test now ?

have a good day

Joao Cardoso

unread,
Nov 19, 2011, 4:36:24 PM11/19/11
to al...@googlegroups.com
On Saturday, November 19, 2011 14:09:50 Eric_G wrote:
> Hi,
>
> so i tried to send an email :
>
> from mon...@free.fr to eric.g...@yahoo.fr ==> i received the mail
> on my adress

How did you do it, if the webgui only allows you to specify the "To" address
when configured for an anonymous server?
What address have you specified in the "SendTo" webgui entry? Have you used
the command line? Please clarify.

> from eric.g...@yahoo.fr to mon...@free.fr ==> my NAS received my
> email

How did you do that? Never mind, I will not support that.

> if you need to test it yourself you can create an address on the
> server "free" using the following link :
>
> http://www.free.fr/assistance/498-compte-acces-libre.html
>
> sorry it s a french web site :s

Pas de problem, je l'essayerais (?!) bientot.

Eric_G

unread,
Nov 21, 2011, 1:53:56 PM11/21/11
to Alt-F
hi,

first, my test to send a mail yahoo ==> free was done between my yahoo
mailbox (eric.g...@yahoo.fr)
second, my test to send free ==> yahoo was done between my free
mailbox (mon...@free.fr)
third, by webgui i specified in sendto entry my personal mail address
(eric.g...@yahoo.fr) but when i tested by button test, i had the
error posted in my first message.
fourth, i tried to edit the /etc/msmtprc file with "vi". i added a
line "to eric.g...@yahoo.fr" and modified the line "from
mon...@free.fr (all this test was realised in anonymous account)

i dont know what is wrong in my tests and my configuration

thanks for your help


On 19 nov, 22:36, Joao Cardoso <whoami.jc...@gmail.com> wrote:
> On Saturday, November 19, 2011 14:09:50 Eric_G wrote:
> > Hi,
>
> > so i tried to send an email :
>

> > from mon...@free.fr to eric.genil...@yahoo.fr ==> i received the mail


> > on my adress
>
> How did you do it, if the webgui only allows you to specify the "To" address
> when configured for an anonymous server?
> What address have you specified in the "SendTo" webgui  entry? Have you used
> the command line? Please clarify.
>

> > from eric.genil...@yahoo.fr to mon...@free.fr ==> my NAS received my

Joao Cardoso

unread,
Nov 21, 2011, 3:21:12 PM11/21/11
to al...@googlegroups.com
On Monday, November 21, 2011 18:53:56 Eric_G wrote:
> hi,
...


> third, by webgui i specified in sendto entry my personal mail address
> (eric.g...@yahoo.fr) but when i tested by button test, i had the
> error posted in my first message.

For now, try insted to specify "mon...@free.fr", even if that is not what you
want. Do you still got the error? Was the mail delivered?

ISP mail servers generaly only accept mails from anonymous sources when the
sending host belongs to the ISP network.
They can do this because they know who is sending the mail.

The only thing you can do for now is to specify in the webgui "mon...@free.fr"
as the "Send To" address.
That should work if the dns-323 is a network client of "free.fr" through your
modem/router.

Currently Alt-F does not allows you to specify a separate "From" and "To" e-
mail address in anonymous mode. And in non-anonymous mode the "From" address
is derived from the webguy "Username".
I'm fixing this right now for the next release.

I read the free.fr link that you sent, and others, and you can use an
authenticate mode instead of the anonymous one, but that is not going to help,
as they ask you to use as username the name before the @, and the webgui needs
the whole e-mail adress as the username. Yes, confuse and a bad Alt-F design.

Of course you can still create a gmail account (that works with Alt-F) while I
don't fix the issue for the next release.

Thanks,
Joao

Eric_G

unread,
Dec 9, 2011, 1:44:02 PM12/9/11
to Alt-F
hi,

so i tested what you said me :

The only thing you can do for now is to specify in the webgui
"mon...@free.fr"
as the "Send To" address.
That should work if the dns-323 is a network client of "free.fr"
through your
modem/router.

when i used "mon...@free.fr" as the "sent to" address but i had the
same error :

msmtp: envelope from address root not accepted by the server
msmtp: server message: 504 5.5.2 <root>: Sender address rejected: need
fully-qualified address
msmtp: could not send mail (account default from /etc/msmtprc)
HTTP/1.0 200 OK

my DNS is connecting on my ISP modem ...

i think i will wait your next release. when do you think you can
integrate this ?

thanks
best regards

On 21 nov, 21:21, Joao Cardoso <whoami.jc...@gmail.com> wrote:
> On Monday, November 21, 2011 18:53:56 Eric_G wrote:
> > hi,
>
> ...
>

> > third, bywebguii specified in sendto entry my personal mail address
> > (eric.genil...@yahoo.fr) but when i tested by button test, i had the


> > error posted in my first message.
>
> For now, try insted to specify "mon...@free.fr", even if that is not what you
> want. Do you still got the error? Was the mail delivered?
>
> ISP mail servers generaly only accept mails from anonymous sources when the
> sending host belongs to the ISP network.
> They can do this because they know who is sending the mail.
>

> The only thing you can do for now is to specify in thewebgui"mon...@free.fr"

Joao Cardoso

unread,
Dec 10, 2011, 12:52:55 PM12/10/11
to Alt-F

On Dec 9, 6:44 pm, Eric_G <eric.genil...@yahoo.fr> wrote:
> hi,
>
> so i tested what you said me :
>
> The only thing you can do for now is to specify in the webgui
> "mon...@free.fr"
> as the "Send To" address.
> That should work if the dns-323 is a network client of "free.fr"
> through your
> modem/router.
>
> when i used "mon...@free.fr" as the "sent to" address but i had the
> same error :
>
> msmtp: envelope from address root not accepted by the server
> msmtp: server message: 504 5.5.2 <root>: Sender address rejected: need
> fully-qualified address
> msmtp: could not send mail (account default from /etc/msmtprc)
> HTTP/1.0 200 OK
>
> my DNS is connecting on my ISP modem ...
>
> i think i will wait your next release. when do you think you can
> integrate this ?

I have made the changes for the next release, and it works for my ISP,
both as anonymous and using user/password login, without TLS/SSL, but
different ISPs might use different policies, there is no guarantee
that it will work for all cases.

A new release will be available only for January.

Eric_G

unread,
Dec 15, 2011, 10:33:19 AM12/15/11
to Alt-F
January is soon enough for me.
thank you
I will test and tell you the result
Reply all
Reply to author
Forward
0 new messages