Sponsored Content
Full Discussion: automatic mail sending
Operating Systems Linux Red Hat automatic mail sending Post 302354477 by s93366 on Friday 18th of September 2009 09:20:46 AM
Old 09-18-2009
First you need to configure sendmail to route mails to your exchange server (SMTP)

Modify /etc/mail/sendmail.cf
modify the line starting with DS to
Code:
DSmymailserver.mydomain.com

restart sendmail
Code:
service sendmail restart

from the command line :
Code:
mail -s "test subject" example@gmail.com  <press enter>
this is my test email

.

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

sending a mail to a mail client

Hi everyone! I'm trying to create a database monitoring script that reads an alert file and sends an error message if it can 'grep' a particular string. Is there a way to send this message to a mail client using SMTP? Even better, is there any place on this site that has these kinds of... (5 Replies)
Discussion started by: solaris73
5 Replies

2. UNIX for Dummies Questions & Answers

mail with automatic signature

Hi everybody! I want to know if someone knows about a program that "inserts" a graphic in the signature of a mail user. Let me be more clear. I'm mail admin in a company that uses Netscape Messaging Server 4.15, and my boss wants to put a graphic christmas message in all the outgoing mails. ... (1 Reply)
Discussion started by: piltrafa
1 Replies

3. UNIX for Dummies Questions & Answers

Sending Mail

Please help me out i want to know how to send email from unix machine to any email-id. mail to be sent is web based mail. (1 Reply)
Discussion started by: parmeet
1 Replies

4. HP-UX

Sending mail thru HP-UX

I got stuckup with the issue of sending mail with attachment from HP-UX. Can any one please help me in resolving the issue. I am giving the criteria which i want below, 1. To address. 2. Cc address. 3. Subject 4. File attachment(the file i am using is :-- filename_`date +%Y%m%d`.CSV)... (1 Reply)
Discussion started by: medisetti
1 Replies

5. Solaris

Automatic Log files to my E-mail.

Hi, I have 6 servers, I want to make a script to read the messages (/var/adm/messages) file daily in the morning and send it automatically to my E-mail address. Regards (2 Replies)
Discussion started by: adel8483
2 Replies

6. Solaris

Script for automatic deletion of trash file of mail server

Hi, I have a mail server with limited space and operating system is sun solaris 8 (sparc). I do not have provisions to increase the space for home directory. So i have to delete files from /home/username/mail/trash which are more than 10 days old automatically. So my script should be like... (1 Reply)
Discussion started by: crown2100bd
1 Replies

7. Shell Programming and Scripting

Shell script for sending automatic email to personal mail id

hi guys, I need a shell script to send mail automatically to my personal mail id like xxxx@hotmail.com but while experimenting with "mail" command I faced following problems. cat text1.txt | mail -s 'test mail' xxxx@hotmail.com command successfully executed but while checking for... (4 Replies)
Discussion started by: rrd1986
4 Replies

8. Shell Programming and Scripting

Stop sending mail after certain number of mail

Hi guys... I am busy writing a script to notify me via an mail if my application is down. I have done that. Now I want this script to stop sending mails after five mails were sent but the script should keep on checking the application. When the application is up again that count should be... (5 Replies)
Discussion started by: Phuti
5 Replies

9. UNIX for Dummies Questions & Answers

UNIX Inquiry for Automatic Sending

Hi Everyone! I'm new with UNIX,so, sorry if this question seems really dumb.:( Anyway, I'd just like if it's possible to automatically inform someone (via mail or pop-up box or something) that a file has been recently uploaded/received to the UNIX box? If it is, any advice on how to get that... (1 Reply)
Discussion started by: jam04
1 Replies

10. Red Hat

Problems sending mail: Difference between Mail and Mailx?

Whats the difference between mail and mailx? I'm trying to troubleshoot a problem where I can send mail from server A with this `echo $MESSAGE | mail -s "$SUBJECT" -r $FROM $RECIPIENTS` command but executing the same command from server B throws me this error (Both servers are RHEL) ... (1 Reply)
Discussion started by: RedSpyder
1 Replies
SENDMAILCONFIG(8)					      System Manager's Manual						 SENDMAILCONFIG(8)

NAME
sendmailconfig - configure sendmail for Debian systems SYNOPSIS
sendmailconfig [--no-reload] DESCRIPTION
sendmailconfig is used to simplify the configuration of sendmail(8) for use on Debian systems. In the simplest case, you may run this program to (re)configure sendmail for your Debian system at any time. It will modify the file /etc/mail/sendmail.mc in order to create a working sendmail configuration which will be written to the file /etc/mail/sendmail.cf. For advanced configurations, you can modify the sendmail.mc file before generating sendmail.cf. Future invokations of sendmailconfig will preserve these changes provided they are made at the end of the file. Normally sendmailconfig will ask if you want to reload sendmail after making changes to its configuration. The --no-reload option will avoid this question. FILES
/etc/mail/sendmail.mc sendmail m4 input to generate sendmail.cf /etc/mail/sendmail.cf actual sendmail configuration file /etc/mail/sendmail.cw names for which we will accept mail in the standard configuration /etc/mail/sendmail.ct names of trusted users in the standard configuration SEE ALSO
sendmail(8) AUTHOR
Robert Leslie <rob@mars.org> 21-Jan-1997 SENDMAILCONFIG(8)
All times are GMT -4. The time now is 06:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy