* Error while sending a mail from mutt
@ 2017-03-29 19:32 AYAN KUMAR HALDER
2017-03-29 20:19 ` Jim Davis
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: AYAN KUMAR HALDER @ 2017-03-29 19:32 UTC (permalink / raw)
To: kernelnewbies
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
^ permalink raw reply [flat|nested] 9+ messages in thread* Error while sending a mail from mutt 2017-03-29 19:32 Error while sending a mail from mutt AYAN KUMAR HALDER @ 2017-03-29 20:19 ` Jim Davis 2017-03-29 21:45 ` Okash Khawaja 2017-03-30 10:50 ` Alexander Kapshuk 2017-04-16 5:19 ` Amit Kumar 2 siblings, 1 reply; 9+ messages in thread From: Jim Davis @ 2017-03-29 20:19 UTC (permalink / raw) To: kernelnewbies 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 at 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 at 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 ^ permalink raw reply [flat|nested] 9+ messages in thread
* Error while sending a mail from mutt 2017-03-29 20:19 ` Jim Davis @ 2017-03-29 21:45 ` Okash Khawaja 2017-03-30 10:28 ` AYAN KUMAR HALDER 0 siblings, 1 reply; 9+ messages in thread From: Okash Khawaja @ 2017-03-29 21:45 UTC (permalink / raw) To: kernelnewbies > 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 at 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 at 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 at 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. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Error while sending a mail from mutt 2017-03-29 21:45 ` Okash Khawaja @ 2017-03-30 10:28 ` AYAN KUMAR HALDER 2017-03-30 11:07 ` Okash Khawaja 0 siblings, 1 reply; 9+ messages in thread From: AYAN KUMAR HALDER @ 2017-03-30 10:28 UTC (permalink / raw) To: kernelnewbies 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 at 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 at 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 at 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. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Error while sending a mail from mutt 2017-03-30 10:28 ` AYAN KUMAR HALDER @ 2017-03-30 11:07 ` Okash Khawaja 0 siblings, 0 replies; 9+ messages in thread From: Okash Khawaja @ 2017-03-30 11:07 UTC (permalink / raw) To: kernelnewbies > How do I see what arguments are being sent by mutt to sendmail. In ~/.muttrc, where it says set sendmail=... Replace the argument with your custom script which logs all arguments passed to it. > Is there any quicker way by which I can get mutt working fine. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Error while sending a mail from mutt 2017-03-29 19:32 Error while sending a mail from mutt AYAN KUMAR HALDER 2017-03-29 20:19 ` Jim Davis @ 2017-03-30 10:50 ` Alexander Kapshuk 2017-04-16 5:19 ` Amit Kumar 2 siblings, 0 replies; 9+ messages in thread From: Alexander Kapshuk @ 2017-03-30 10:50 UTC (permalink / raw) To: kernelnewbies 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 at 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. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Error while sending a mail from mutt 2017-03-29 19:32 Error while sending a mail from mutt AYAN KUMAR HALDER 2017-03-29 20:19 ` Jim Davis 2017-03-30 10:50 ` Alexander Kapshuk @ 2017-04-16 5:19 ` Amit Kumar 2017-04-16 7:57 ` Sebastien Masson 2 siblings, 1 reply; 9+ messages in thread From: Amit Kumar @ 2017-04-16 5:19 UTC (permalink / raw) To: kernelnewbies 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 at kernelnewbies.org > https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies ^ permalink raw reply [flat|nested] 9+ messages in thread
* Error while sending a mail from mutt 2017-04-16 5:19 ` Amit Kumar @ 2017-04-16 7:57 ` Sebastien Masson 2017-04-16 8:31 ` Amit Kumar 0 siblings, 1 reply; 9+ messages in thread From: Sebastien Masson @ 2017-04-16 7:57 UTC (permalink / raw) To: 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_Exchange This specific part is about mutt configuration for SMTP & IMAP, using exim. BR, Sebastien. > > > > Regards, > > Ayan Kumar Halder > > > > _______________________________________________ > > Kernelnewbies mailing list > > Kernelnewbies at kernelnewbies.org > > https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > > _______________________________________________ > Kernelnewbies mailing list > Kernelnewbies at kernelnewbies.org > https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies ^ permalink raw reply [flat|nested] 9+ messages in thread
* Error while sending a mail from mutt 2017-04-16 7:57 ` Sebastien Masson @ 2017-04-16 8:31 ` Amit Kumar 0 siblings, 0 replies; 9+ messages in thread From: Amit Kumar @ 2017-04-16 8:31 UTC (permalink / raw) To: 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_Exchange > > 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 at kernelnewbies.org > > > https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > > > > _______________________________________________ > > Kernelnewbies mailing list > > Kernelnewbies at kernelnewbies.org > > https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2017-04-16 8:31 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-03-29 19:32 Error while sending a mail from mutt AYAN KUMAR HALDER 2017-03-29 20:19 ` Jim Davis 2017-03-29 21:45 ` Okash Khawaja 2017-03-30 10:28 ` AYAN KUMAR HALDER 2017-03-30 11:07 ` Okash Khawaja 2017-03-30 10:50 ` Alexander Kapshuk 2017-04-16 5:19 ` Amit Kumar 2017-04-16 7:57 ` Sebastien Masson 2017-04-16 8:31 ` Amit Kumar
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).