Error while sending a mail from mutt
Hi, I am trying to send a mail using mutt. I am getting the error as follows :- SMTP session failed: 501 5.5.4 I understand the error meant that a valid mail transaction protocol was used with invalid arguments. Please let me know how do I debug this issue further. Regards, Ayan Kumar Halder
On Wed, Mar 29, 2017 at 12:32 PM, AYAN KUMAR HALDER <ayankumarh@gmail.com> wrote:
Hi,
I am trying to send a mail using mutt. I am getting the error as follows :-
SMTP session failed: 501 5.5.4
I understand the error meant that a valid mail transaction protocol was used with invalid arguments. Please let me know how do I debug this issue further.
Mutt usually invokes some other program to send mail -- on my workstation, for instance, that other program is /usr/sbin/sendmail: [jim@krebstar ~]$ mutt -v | grep '^SENDMAIL' SENDMAIL="/usr/sbin/sendmail" so to debug a similar problem on my workstation I'd first look to see where sendmail (or whatever program your mutt installation uses) logs its messages. That used to be in /var/log/maillog or such; nowadays you might have to run journalctl instead. For example, if I try mutt postmaster@example.com </dev/null on my workstation, then journalctl | grep sendmail tells me Mar 29 12:59:06 krebstar.arl.arizona.edu sendmail[27263]: v2TJx61J027263: to=postmaster@example.com, ctladdr=jim (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30294, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] which reminds me I don't actually have the sendmail service running. -- Jim
On 29 Mar 2017, at 21:19, Jim Davis <jim.epost@gmail.com> wrote:
On Wed, Mar 29, 2017 at 12:32 PM, AYAN KUMAR HALDER <ayankumarh@gmail.com> wrote:
Hi,
I am trying to send a mail using mutt. I am getting the error as follows :-
SMTP session failed: 501 5.5.4
I understand the error meant that a valid mail transaction protocol was used with invalid arguments. Please let me know how do I debug this issue further.
Mutt usually invokes some other program to send mail -- on my workstation, for instance, that other program is /usr/sbin/sendmail:
[jim@krebstar ~]$ mutt -v | grep '^SENDMAIL' SENDMAIL="/usr/sbin/sendmail"
so to debug a similar problem on my workstation I'd first look to see where sendmail (or whatever program your mutt installation uses) logs its messages.
That used to be in /var/log/maillog or such; nowadays you might have to run journalctl instead.
For example, if I try
mutt postmaster@example.com </dev/null
on my workstation, then
journalctl | grep sendmail
tells me
Mar 29 12:59:06 krebstar.arl.arizona.edu sendmail[27263]: v2TJx61J027263: to=postmaster@example.com, ctladdr=jim (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30294, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
which reminds me I don't actually have the sendmail service running.
You can check ~/.muttrc file to see what it is using to send emails. If it is using sendmail or esmtp, then in .muttrc file where it specifies sending program you can append -X /path/to/log/file. That will output the whole SMTP dialog to that log file.
On Thu, Mar 30, 2017 at 3:15 AM, Okash Khawaja <okash.khawaja@gmail.com> wrote:
On 29 Mar 2017, at 21:19, Jim Davis <jim.epost@gmail.com> wrote:
On Wed, Mar 29, 2017 at 12:32 PM, AYAN KUMAR HALDER <ayankumarh@gmail.com> wrote:
Hi,
I am trying to send a mail using mutt. I am getting the error as follows :-
SMTP session failed: 501 5.5.4
I understand the error meant that a valid mail transaction protocol was used with invalid arguments. Please let me know how do I debug this issue further.
Mutt usually invokes some other program to send mail -- on my workstation, for instance, that other program is /usr/sbin/sendmail:
[jim@krebstar ~]$ mutt -v | grep '^SENDMAIL' SENDMAIL="/usr/sbin/sendmail"
so to debug a similar problem on my workstation I'd first look to see where sendmail (or whatever program your mutt installation uses) logs its messages.
That used to be in /var/log/maillog or such; nowadays you might have to run journalctl instead.
For example, if I try
mutt postmaster@example.com </dev/null
on my workstation, then
journalctl | grep sendmail
tells me
Mar 29 12:59:06 krebstar.arl.arizona.edu sendmail[27263]: v2TJx61J027263: to=postmaster@example.com, ctladdr=jim (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30294, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
which reminds me I don't actually have the sendmail service running.
You can check ~/.muttrc file to see what it is using to send emails. If it is using sendmail or esmtp, then in .muttrc file where it specifies sending program you can append -X /path/to/log/file. That will output the whole SMTP dialog to that log file.
In my case, I get the following error messages in /var/log/mail.log Mar 30 15:39:55 ayankh-X553SA postfix/sendmail[24765]: fatal: usage: sendmail [options] Mar 30 15:40:17 ayankh-X553SA postfix/sendmail[24891]: fatal: usage: sendmail [options] How do I see what arguments are being sent by mutt to sendmail. Is there any quicker way by which I can get mutt working fine.
On Wed, Mar 29, 2017 at 10:32 PM, AYAN KUMAR HALDER <ayankumarh@gmail.com> wrote:
Hi,
I am trying to send a mail using mutt. I am getting the error as follows :-
SMTP session failed: 501 5.5.4
I understand the error meant that a valid mail transaction protocol was used with invalid arguments. Please let me know how do I debug this issue further.
Regards, Ayan Kumar Halder
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
I've set up mutt to use Gmail using the instructions given here: https://dev.mutt.org/trac/wiki/UseCases/Gmail https://wiki.archlinux.org/index.php/mutt#Summary Hope this helps.
On Thu, Mar 30, 2017 at 01:02:48AM +0530, AYAN KUMAR HALDER wrote:
Hi,
I am trying to send a mail using mutt. I am getting the error as follows :-
SMTP session failed: 501 5.5.4
I understand the error meant that a valid mail transaction protocol was used with invalid arguments. Please let me know how do I debug this issue further. Hi, https://github.com/freeark1/something-to-share Please follow above URL, there you will find muttrc and msmtprc. Change settings in both files as it suits you. Copy muttrc in .mutt directory in $HOME Copy msmtprc as .msmtprc in $HOME Install msmtp NB: ca trust file location for debian based system is different. If any doubt, please mail.
Regards, Amit Kumar
Regards, Ayan Kumar Halder
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
On Sun, Apr 16, 2017 at 05:19:08AM +0000, Amit Kumar wrote:
On Thu, Mar 30, 2017 at 01:02:48AM +0530, AYAN KUMAR HALDER wrote:
Hi,
I am trying to send a mail using mutt. I am getting the error as follows :-
SMTP session failed: 501 5.5.4
I understand the error meant that a valid mail transaction protocol was used with invalid arguments. Please let me know how do I debug this issue further. Hi, https://github.com/freeark1/something-to-share Please follow above URL, there you will find muttrc and msmtprc. Change settings in both files as it suits you. Copy muttrc in .mutt directory in $HOME Copy msmtprc as .msmtprc in $HOME Install msmtp NB: ca trust file location for debian based system is different. If any doubt, please mail.
Regards, Amit Kumar
This is my personal notebook but it might help, so, feel free to grab some info: http://wiki.masson.engineer/index.php?title=Linux:Administration#eMails_Exch... This specific part is about mutt configuration for SMTP & IMAP, using exim. BR, Sebastien.
Regards, Ayan Kumar Halder
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
On Sun, Apr 16, 2017 at 09:57:25AM +0200, Sebastien Masson wrote:
On Sun, Apr 16, 2017 at 05:19:08AM +0000, Amit Kumar wrote:
On Thu, Mar 30, 2017 at 01:02:48AM +0530, AYAN KUMAR HALDER wrote:
Hi,
I am trying to send a mail using mutt. I am getting the error as follows :-
SMTP session failed: 501 5.5.4
I understand the error meant that a valid mail transaction protocol was used with invalid arguments. Please let me know how do I debug this issue further. Hi, https://github.com/freeark1/something-to-share Please follow above URL, there you will find muttrc and msmtprc. Change settings in both files as it suits you. Copy muttrc in .mutt directory in $HOME Copy msmtprc as .msmtprc in $HOME Install msmtp NB: ca trust file location for debian based system is different. If any doubt, please mail.
Regards, Amit Kumar
This is my personal notebook but it might help, so, feel free to grab some info: http://wiki.masson.engineer/index.php?title=Linux:Administration#eMails_Exch...
This specific part is about mutt configuration for SMTP & IMAP, using exim. http://www.masson.engineer/index.html Very innovative way to present resume. Thanks.
BR, Sebastien.
Regards, Ayan Kumar Halder
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
participants (6)
-
Alexander Kapshuk -
Amit Kumar -
AYAN KUMAR HALDER -
Jim Davis -
Okash Khawaja -
Sebastien Masson