Have problem to send email from command line according to the posts like this one:
Did not touch the postfix configuration part though, left it unchanged. But I never get it work. No error no mail in my hotmail.com. I must have missed something about the configuration. What I want to do is to send email to friends, and even my own hotmail account, from the command line when I am in the campus, office and home (I have wireless internet access at these three places where I do my stuff mostly.) I am using Ubuntu 11.10 on Compaq CQ630 laptop. My ISP is SHAW.COM and I do not have a domain at this moment.
Thanks a lot! YF
hi all
How do I send email from command prompt?
i tried this
# mutt -s "Test mail" -a /root/Desktop/email1.txt XXXXX@yahoo.co.in < /root/Desktop/email.txt
Error sending message, child exited 71 (Operating system error.).
Segmentation fault
#
and also
root@localhost ~]# /bin/mail -s "what... (0 Replies)
Hey Guys,
I have been trying to send a email as ccto a email ID .However it seems the -c option is not working in HP UX system.
It is shooting an error as "mailx: illegal option -- c"
My script isin the below manner:
mailx -c EMAIL_IDS_CC# -s 'BDC reminder' -r sender@email.com... (1 Reply)
Help with script that will check log, then find a match is found, add that as the subject line.
1. The script will always run as a deamon.. and scan the event.log file
2. when a new 101 line is added to the event.log file, have the script check position 5,6 and 7 which is the job name, which... (2 Replies)
Hello ,
I am trying to write a unix shell script to compare folder permission to say drwxr-x-wx and then send an email to my id in case the folders don't have the drwxr-x-wx permissions set for them .
I have been trying to come up with a script for few days now , pls help me:( (2 Replies)
Hi !
I am a newbie and never officially wrote a shell script before.
The requirement for this script is :
1) Read a file called 'bpm.log' and identify if it has a specific text such as 'this is the text'. Its a static value and that is the only text we need to read.
2) If that... (2 Replies)
Hello all
I'm trying to write a script to send an email, so I can be nnotified when something is going wrong with my system.
I've tried many options with no luck:
mail -s "You've got mail" somebody@example.com
echo "Mail Body" | mail -s "Subject" somebody@example.com
I tried also to... (1 Reply)
Hello Unix Experts!
We are on AIX 6.1 TL6
I am trying to develop a script that does the following:
It should send the output of "df -g /directory/folder" command as an email to a user(someone@company.com)
This is too simple and i can research on how to do it, but it would be great if... (2 Replies)
I am currently try to write a simple script with the following condition, but so far not having luck as the exit code would always be 0.
Run remote command to read a file and grep for test word.
if test word is in the file, send email.
if not, do nothing
also possible to ssh to multiple... (3 Replies)
Hello Experts,
Greeting to all of you.
I have a requirement, that we have a shell script status.sh
that check the status of server and server status shows as status.sh
Enterprise Server - Running
Admin Server - Shutdown
Requirement is like whenever the output shows shutdown it should... (2 Replies)
Hello Forum,
I'm making very good progress on my report thanks to the very helpful people on this forum. I've been able to successfully create my report for my Red Hat servers. But I do have a few ubuntu servers in the mix and I'd like to capture some data from them when an ssh connection is... (8 Replies)
Discussion started by: greavette
8 Replies
LEARN ABOUT DEBIAN
mysqmail-postfix-logger
mysqmail-postfix-logger(8) System Manager's Manual mysqmail-postfix-logger(8)NAME
mysqmail-postfix-logger - logs smtp traffic to a mysql database
SYNOPSIS
mysqmail-postfix-logger subprogram [ args ... ]
DESCRIPTION
mysqmail-postfix-logger reads the syslog using tail -F and for each lines, does an action in a selected table in the selected mysql server
(configuration done using /etc/mysqmail.conf). All messages that have been delivered are marqued as so in the from and in the to field of
the smtp traffic table.
mysqmail-postfix-logger uses a table corresponding to this one:
CREATE TABLE IF NOT EXISTS smtp_logs (
id int(11) NOT NULL auto_increment,
newmsg_id bigint(20) default NULL,
bounce_qp int(11) default NULL,
bytes int(11) NOT NULL default '0',
sender_user varchar(128) NOT NULL default '',
sender_domain varchar(128) NOT NULL default '',
delivery_id bigint(20) default NULL,
delivery_user varchar(128) NOT NULL default '',
delivery_domain varchar(128) NOT NULL default '',
delivery_success enum('yes','no') NOT NULL default 'no',
time_stamp timestamp(14) NOT NULL,
PRIMARY KEY (id),
UNIQUE KEY bounce_qp (bounce_qp),
UNIQUE KEY newmsg_id (newmsg_id),
KEY sender_domain (sender_domain),
KEY delivery_domain (delivery_domain) ) TYPE=MyISAM;
VERSION
This documentation describes mysqmail-postfix-logger version 0.1.4. See http://gplhost.com/softwares-mysqmail.html for updates.
SEE ALSO syslog(3), logger(8)mysqmail-postfix-logger(8)