Archive for the ‘E-mails issue’ Category

Send an E-mail from server.

Basically to send an E-mail from the Linux server shell, the mailx module is required. First install the mailx module by usiung the yum installed.

Login in to the server as a root user and follow the following steps one by one

root@server[~]# yum install mailx

Once mailx installed on the server, you cna use the following syntax to send an E-mail from the server.

root@server[~]#mail -vv E-mail address

It will ask you for the subject

root@server[~]#mail -vv support@gmail.com
Subject: test message

Now press control+d, it will give you Cc: option. You can ignore it and press the control+d

It will send an E-mail and show you the following logs.

root@server[~]# mail -vv support@gmail.com
Subject: test mesgsage
Cc: supp0rt24x7@gmail… Connecting to [127.0.0.1] via relay…
220 support.localhost.com ESMTP Sendmail 8.13.8/8.13.8; Sat, 19 Nov 2011 23:47:32 -0500
>>> EHLO linux7802.localhost.com
250-server.localhost.com Hello localhost.localdomain [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> MAIL From: SIZE=50
250 2.1.0 … Sender ok
>>> RCPT To:
>>> DATA
250 2.1.5 … Recipient ok
354 Enter mail, end with “.” on a line by itself
>>> .
250 2.0.0 pAK4lWqU025615 Message accepted for delivery
support@gmail… Sent (pAK4lWqU025615 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 server.localhost.com closing connection

As per above logs E-mail sent to the E-mail address support@gmail.com successfully

Tag

.htaccess .htaccess file /etc/ssh/sshd_config /var/cpanel/cpanel.config Access denied for user 'root'@'localhost' cgi script clear cache cPanel access logs cPanel error logs cPanel exim logs cPanel logs cPanel servers logs Create new FTP account from cPanel Disable directory listing exim logs find command how to block referrer install mailx mysql from WHM mysql has failed mysql service mysql service from WHM nameserver setup Network File System NFS Server php form phpmail() form phpmail function please contact the sysadmin plesk panel issue roundcube roundcube error roundcube error logs Safari browser Safari browser + AddHandler application/x-httpd-php5 Safari browser downloading .html pages. Safari browser downloading pages Safari downloading pages simple php form simple phpmail() form simple phpmail function form sshd restart suexec trueuserdomains using the NFS Server

.htaccess (15)
Basic Linux (57)
Browser problems (3)
Common errors (10)
cPanel + cPanel scripts (29)
Cron jobs issue (5)
Dedicated Server Issue (21)
Definition / Explanation (5)
E-mails issue (18)
Enable private PHP (5)
Few good queries and suggestions (12)
FTP / Frontpage / Dreamweaver (10)
General (3)
HTML/PHP issue (1)
Install server side software / script (16)
Linux Administrator Interview Questions (73)
Linux Permissions (8)
Mailman (1)
Mysql + phpmyadmin (19)
New updates/release (1)
NFS server (6)
PHP (7)
Plesk (13)
scripts (5)
Server Security (20)
Third party script issue (17)
Tomcat/Ruby Rail (2)
Uncategorized (20)
VPS (61)

WP-Cumulus by Roy Tanck and Luke Morton requires Flash Player 9 or better.

Calendar
May 2012
M T W T F S S
« Apr    
 123456
78910111213
14151617181920
21222324252627
28293031  
Blogroll