<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: 9 mail/mailx command examples to send emails from command line on Linux	</title>
	<atom:link href="https://www.binarytides.com/linux-mailx-command/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.binarytides.com/linux-mailx-command/</link>
	<description>News, Technology, Entertainment and more</description>
	<lastBuildDate>Fri, 05 Jun 2020 06:41:44 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
	<item>
		<title>
		By: mano		</title>
		<link>https://www.binarytides.com/linux-mailx-command/comment-page-1/#comment-161145</link>

		<dc:creator><![CDATA[mano]]></dc:creator>
		<pubDate>Wed, 27 Jun 2018 11:09:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=7467#comment-161145</guid>

					<description><![CDATA[might be worth pointing out that most of this won&#039;t work on a lot of systems,
illegal option -- S
illegal option -- a
illegal option -- r]]></description>
			<content:encoded><![CDATA[<p>might be worth pointing out that most of this won&#8217;t work on a lot of systems,<br />
illegal option &#8212; S<br />
illegal option &#8212; a<br />
illegal option &#8212; r</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Dave		</title>
		<link>https://www.binarytides.com/linux-mailx-command/comment-page-1/#comment-114666</link>

		<dc:creator><![CDATA[Dave]]></dc:creator>
		<pubDate>Wed, 12 Apr 2017 10:00:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=7467#comment-114666</guid>

					<description><![CDATA[You don&#039;t detail how mailx determines the smtp envelope from address
&#062;&#062;&#062; MAIL FROM:
Obviously it&#039;s user@hostname, but how can this be over-ridden with mailx ?]]></description>
			<content:encoded><![CDATA[<p>You don&#8217;t detail how mailx determines the smtp envelope from address<br />
&gt;&gt;&gt; MAIL FROM:<br />
Obviously it&#8217;s user@hostname, but how can this be over-ridden with mailx ?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: John Smith		</title>
		<link>https://www.binarytides.com/linux-mailx-command/comment-page-1/#comment-99871</link>

		<dc:creator><![CDATA[John Smith]]></dc:creator>
		<pubDate>Wed, 07 Dec 2016 20:59:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=7467#comment-99871</guid>

					<description><![CDATA[Hello. 
I want my printer to send emails to external email addresses like Gmail.com, I setup the ubuntu server as explained and set the ubuntu server as the smtp server on printer. I can send emails from ubuntu server to gmail, but it&#039;s not relaying emails to gmail.com from the printer itself. What should I do? Please help.]]></description>
			<content:encoded><![CDATA[<p>Hello.<br />
I want my printer to send emails to external email addresses like Gmail.com, I setup the ubuntu server as explained and set the ubuntu server as the smtp server on printer. I can send emails from ubuntu server to gmail, but it&#8217;s not relaying emails to gmail.com from the printer itself. What should I do? Please help.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Selva		</title>
		<link>https://www.binarytides.com/linux-mailx-command/comment-page-1/#comment-91697</link>

		<dc:creator><![CDATA[Selva]]></dc:creator>
		<pubDate>Thu, 18 Aug 2016 08:41:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=7467#comment-91697</guid>

					<description><![CDATA[Hi Team,

I would like to know, whether we have option to send the attachment with password protected through mailx UNIX command? can anyone help me on this.]]></description>
			<content:encoded><![CDATA[<p>Hi Team,</p>
<p>I would like to know, whether we have option to send the attachment with password protected through mailx UNIX command? can anyone help me on this.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Henrik		</title>
		<link>https://www.binarytides.com/linux-mailx-command/comment-page-1/#comment-76956</link>

		<dc:creator><![CDATA[Henrik]]></dc:creator>
		<pubDate>Wed, 11 May 2016 09:11:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=7467#comment-76956</guid>

					<description><![CDATA[Hi Silver Moon

Great article!

I have a cron job like this:
tar -czf /home/backup/myfolder/myfile_$(/bin/date +\%Y\%m\%d).tgz /home/public_html -X /home/backup/myfile-exclude.txt

I have edit my cron job to this:
tar -czf /home/backup/myfolder/myfile_$(/bin/date +\%Y\%m\%d).tgz /home/public_html -X /home/backup/myfile-exclude.txt &#124; mail -s &quot;Cron Daemon: mywebsite.com - files backup&quot; support@mydomain

Normally the Cron job puts some info into the Body, but how do I get this to work? I have tried with:
&#060; /dev/null 

or 

echo

Regards,
Henrik]]></description>
			<content:encoded><![CDATA[<p>Hi Silver Moon</p>
<p>Great article!</p>
<p>I have a cron job like this:<br />
tar -czf /home/backup/myfolder/myfile_$(/bin/date +\%Y\%m\%d).tgz /home/public_html -X /home/backup/myfile-exclude.txt</p>
<p>I have edit my cron job to this:<br />
tar -czf /home/backup/myfolder/myfile_$(/bin/date +\%Y\%m\%d).tgz /home/public_html -X /home/backup/myfile-exclude.txt | mail -s &#8220;Cron Daemon: mywebsite.com &#8211; files backup&#8221; support@mydomain</p>
<p>Normally the Cron job puts some info into the Body, but how do I get this to work? I have tried with:<br />
&lt; /dev/null </p>
<p>or </p>
<p>echo</p>
<p>Regards,<br />
Henrik</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Abhishek		</title>
		<link>https://www.binarytides.com/linux-mailx-command/comment-page-1/#comment-73139</link>

		<dc:creator><![CDATA[Abhishek]]></dc:creator>
		<pubDate>Thu, 07 Apr 2016 08:28:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=7467#comment-73139</guid>

					<description><![CDATA[I am using attachment command in phone script but it is not working whether  if the same command  runing on emulator]]></description>
			<content:encoded><![CDATA[<p>I am using attachment command in phone script but it is not working whether  if the same command  runing on emulator</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jas		</title>
		<link>https://www.binarytides.com/linux-mailx-command/comment-page-1/#comment-68802</link>

		<dc:creator><![CDATA[Jas]]></dc:creator>
		<pubDate>Thu, 25 Feb 2016 12:33:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=7467#comment-68802</guid>

					<description><![CDATA[You could setup home computer as well but it needs to integrate with the from address mail domain SMTP relays to send emails.]]></description>
			<content:encoded><![CDATA[<p>You could setup home computer as well but it needs to integrate with the from address mail domain SMTP relays to send emails.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jas		</title>
		<link>https://www.binarytides.com/linux-mailx-command/comment-page-1/#comment-68801</link>

		<dc:creator><![CDATA[Jas]]></dc:creator>
		<pubDate>Thu, 25 Feb 2016 12:30:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=7467#comment-68801</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/linux-mailx-command/comment-page-1/#comment-67657&quot;&gt;Hans&lt;/a&gt;.

Yes, you can use Mailx or any other scripts to send any volume of emails provided that your domain SMTP relay is capable to handle volume. Do you run your own mail server or using one of the shared hosting? If you run yours ... yes you could send any volume but may take few hours to send. You can&#039;t send out emails just using home computer as those will not be delivered to end users or will directly go in users Spam folder. If you need to use home computer ... you would need to hop / forward your emails to your domain SMTP relay of &quot;from user&quot; to send the emails to users. Reach-out if you need professional help for setting up mail server to handle your newsletter ... you would need one dedicated public IPAddress on a Linux server. I am assuming that these are registered users for business and you are authorized to send them newsletter.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/linux-mailx-command/comment-page-1/#comment-67657">Hans</a>.</p>
<p>Yes, you can use Mailx or any other scripts to send any volume of emails provided that your domain SMTP relay is capable to handle volume. Do you run your own mail server or using one of the shared hosting? If you run yours &#8230; yes you could send any volume but may take few hours to send. You can&#8217;t send out emails just using home computer as those will not be delivered to end users or will directly go in users Spam folder. If you need to use home computer &#8230; you would need to hop / forward your emails to your domain SMTP relay of &#8220;from user&#8221; to send the emails to users. Reach-out if you need professional help for setting up mail server to handle your newsletter &#8230; you would need one dedicated public IPAddress on a Linux server. I am assuming that these are registered users for business and you are authorized to send them newsletter.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: alex		</title>
		<link>https://www.binarytides.com/linux-mailx-command/comment-page-1/#comment-68611</link>

		<dc:creator><![CDATA[alex]]></dc:creator>
		<pubDate>Tue, 23 Feb 2016 06:42:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=7467#comment-68611</guid>

					<description><![CDATA[hi I like this!]]></description>
			<content:encoded><![CDATA[<p>hi I like this!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Coenraad Loubser		</title>
		<link>https://www.binarytides.com/linux-mailx-command/comment-page-1/#comment-68107</link>

		<dc:creator><![CDATA[Coenraad Loubser]]></dc:creator>
		<pubDate>Fri, 25 Dec 2015 02:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=7467#comment-68107</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/linux-mailx-command/comment-page-1/#comment-67657&quot;&gt;Hans&lt;/a&gt;.

I hope your ISP blocks you.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/linux-mailx-command/comment-page-1/#comment-67657">Hans</a>.</p>
<p>I hope your ISP blocks you.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: CENTOS		</title>
		<link>https://www.binarytides.com/linux-mailx-command/comment-page-1/#comment-68079</link>

		<dc:creator><![CDATA[CENTOS]]></dc:creator>
		<pubDate>Thu, 22 Oct 2015 09:54:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=7467#comment-68079</guid>

					<description><![CDATA[Hi,

I have followd your &quot;tuto&quot; ( use Centos7 )

I still have this error ?? can you help me ?

Connecting to 82.216.111.2:25 . . . connected.

220 smtp3.tech.numericable.fr ESMTP Postfix
&#062;&#062;&#062; EHLO centos7
250-smtp3.tech.numericable.fr
250-PIPELINING
250-SIZE 10240000
250-ETRN
250-ENHANCEDSTATUSCODES
250 8BITMIME
&#062;&#062;&#062; AUTH LOGIN
503 5.5.1 Error: authentication not enabled
smtp-server: 503 5.5.1 Error: authentication not enabled

my mailrc file ;
#set smtp-use-starttls
set nss-config-dir=~/.mozilla/firefox/yyyyyyyy.default/
set ssl-verify=ignore
set smtpd_sasl_auth_enable
# set smtp
set smtp=smtp://smtp.numericable.fr:25
set from=xxx.yy@numericable.fr
# tell mailx that it needs to authorise
set smtp-auth=login
# set the user for SMTP
# set smtp-auth-user=user@domain.tld
set smtp-auth-user=xxx.yy@numericable.fr
# set the password for authorisation
set smtp-auth-password=xxxxxx
bye.]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>I have followd your &#8220;tuto&#8221; ( use Centos7 )</p>
<p>I still have this error ?? can you help me ?</p>
<p>Connecting to 82.216.111.2:25 . . . connected.</p>
<p>220 smtp3.tech.numericable.fr ESMTP Postfix<br />
&gt;&gt;&gt; EHLO centos7<br />
250-smtp3.tech.numericable.fr<br />
250-PIPELINING<br />
250-SIZE 10240000<br />
250-ETRN<br />
250-ENHANCEDSTATUSCODES<br />
250 8BITMIME<br />
&gt;&gt;&gt; AUTH LOGIN<br />
503 5.5.1 Error: authentication not enabled<br />
smtp-server: 503 5.5.1 Error: authentication not enabled</p>
<p>my mailrc file ;<br />
#set smtp-use-starttls<br />
set nss-config-dir=~/.mozilla/firefox/yyyyyyyy.default/<br />
set ssl-verify=ignore<br />
set smtpd_sasl_auth_enable<br />
# set smtp<br />
set smtp=smtp://smtp.numericable.fr:25<br />
set from=xxx.yy@numericable.fr<br />
# tell mailx that it needs to authorise<br />
set smtp-auth=login<br />
# set the user for SMTP<br />
# set smtp-auth-user=user@domain.tld<br />
set smtp-auth-user=xxx.yy@numericable.fr<br />
# set the password for authorisation<br />
set smtp-auth-password=xxxxxx<br />
bye.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: rituraj		</title>
		<link>https://www.binarytides.com/linux-mailx-command/comment-page-1/#comment-67962</link>

		<dc:creator><![CDATA[rituraj]]></dc:creator>
		<pubDate>Mon, 08 Jun 2015 11:28:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=7467#comment-67962</guid>

					<description><![CDATA[Hi,
I am not able to  use FROM option using -r, specified in 5th point.]]></description>
			<content:encoded><![CDATA[<p>Hi,<br />
I am not able to  use FROM option using -r, specified in 5th point.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mark Dean		</title>
		<link>https://www.binarytides.com/linux-mailx-command/comment-page-1/#comment-67853</link>

		<dc:creator><![CDATA[Mark Dean]]></dc:creator>
		<pubDate>Fri, 27 Feb 2015 06:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=7467#comment-67853</guid>

					<description><![CDATA[Good info. Just to clarify,  sendmail/postfix/etc are MTAs and either relay through an smtp relay or directly communicates to the destination smtp servers, depending on how the MTA is configured. So the flow would be mail_client &#062; mta &#062; smtp_relay OR destination_smtp_server  &#062; recipient&#039;s inbox. So using common programs as an example: mailx &#062; postfix &#062; smtp.yourorg.com &#062; smtp.gmail.com &#062; user@gmail.com inbox. A common example where this configuration is used is Linux servers that need to send to external email recipients (alerts and stuff). In that case, you configure the Linux server to use your outgoing smtp server via sendmail or postfix or other MTA to relay the email by allowing the IP of the Linux server to relay through the smtp server.]]></description>
			<content:encoded><![CDATA[<p>Good info. Just to clarify,  sendmail/postfix/etc are MTAs and either relay through an smtp relay or directly communicates to the destination smtp servers, depending on how the MTA is configured. So the flow would be mail_client &gt; mta &gt; smtp_relay OR destination_smtp_server  &gt; recipient&#8217;s inbox. So using common programs as an example: mailx &gt; postfix &gt; smtp.yourorg.com &gt; smtp.gmail.com &gt; <a href="mailto:user@gmail.com">user@gmail.com</a> inbox. A common example where this configuration is used is Linux servers that need to send to external email recipients (alerts and stuff). In that case, you configure the Linux server to use your outgoing smtp server via sendmail or postfix or other MTA to relay the email by allowing the IP of the Linux server to relay through the smtp server.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Hans		</title>
		<link>https://www.binarytides.com/linux-mailx-command/comment-page-1/#comment-67657</link>

		<dc:creator><![CDATA[Hans]]></dc:creator>
		<pubDate>Tue, 09 Dec 2014 19:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=7467#comment-67657</guid>

					<description><![CDATA[Thank you for your post. Can I use Mailx for send up to 15000 mails ? I&#039;m searching a alternative to online newsletter service (payment)!]]></description>
			<content:encoded><![CDATA[<p>Thank you for your post. Can I use Mailx for send up to 15000 mails ? I&#8217;m searching a alternative to online newsletter service (payment)!</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
