send emails


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers send emails
# 1  
Old 06-10-2010
send emails

hi guys

I need to send emails to some accounts

1. I need sendmail up and running right?
2. I need my local sendmail to use an existing SMTP server to send emails (10.x.x.x)? in that case what I need to configure to send emails?
since using mail myaccount@companyame.com is not sending emails to that address

what else is need in my sendmail to send emails out
thanks a lot
# 2  
Old 06-10-2010
Hi
Check with this command is your send mail working or not
# ps -ef | grep sendmail
if it is not working then recheck with

#nslookup -q=mx < domainname.com> ----> use this command to trace the mailhost IP
# 3  
Old 06-10-2010
yeah it is running


Code:
root      3820     1  0 May09 ?        00:00:01 sendmail: accepting connections
smmsp     5571     1  0 May09 ?        00:00:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue
root     32479 12261  0 09:38 pts/1    00:00:00 grep sendmail

using mail -v emailaccount says

Code:
WARNING: local host name (myservername) is not qualified; see cf/README: WHO AM I?
gmail.com: Name server timeout
karlo@gmail.com... Transient parse error -- message queued for future delivery
karlo@gmail.com... queued



---------- Post updated at 04:24 PM ---------- Previous update was at 11:46 AM ----------

let me summarize my issue again since I was not clear

my customer has multiple server but they do not use DNS so there is nothing on resolv.conf

but they opened some communication to a server that is a SMTP server now my questions is these are red hat server 5.0 and I need to send emails. Sendmail is up and running but it fails
with

WARNING: local host name (SRVAMD01) is not qualified; see cf/README: WHO AM I?
lghgbm.net: Name server timeout
l.chacon@lghgbm.net... Transient parse error -- message queued for future delivery
cchacon@gbm.net... queued
You have new mail in /var/spool/mail/root

any idea how to send emails o what I need to change add to my sendmail configuration?

Last edited by karlochacon; 06-10-2010 at 05:41 PM..
# 4  
Old 06-10-2010
You need to tell sendmail that you are going to use another server as a relay host.

Usually the file can be found in /etc/sendmail/sendmail.cf

Code:
# "Smart" relay host (may be null)
DSxxx.xxx.xxx.xxx

where xxx.xxx.xxx.xxx is the IP address or hostname of the relay server.

Finally, restart the daemon.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sendmail Fails to send emails from Linux server.

I m using free zoho mail client application (similar to microsoft outlook) on my mobile for all my emails to mohtashim@techx.com I wish to only recieve emails from my Linux Server details of which are: techx 3.10.0-514.10.2.el7.x86_64 #1 SMP CentOS release 7.3.1611 (Core). I try the below... (20 Replies)
Discussion started by: mohtashims
20 Replies

2. Shell Programming and Scripting

How to configure mutt to send emails on Linux.?

Hello, I am trying to use mutt in order to send emails. I have installed mutt using yum and pasted some details about it later in the post. When I try to run: echo test | mutt -s "Test Email" user@id.com It doesn't do anything. I dont receive any emails. I have the SMTP details for... (1 Reply)
Discussion started by: vaibhavraj
1 Replies

3. AIX

Sendmail daemon is inactive, but still i can send emails

Hi, I did setup sendmail on one of AIX LPARs. Its working as expected. But, would like to clarify something with you all. I stopped the sendmail daemon on AIX LPAR, now it is inactive(&commented it on /etc/rc.tcpip ). But still, am able to send the emails even after stopping daemon. ... (6 Replies)
Discussion started by: system.engineer
6 Replies

4. Shell Programming and Scripting

Send emails on Solaris 10 via relay authentication

Hi, I am looking for a shell/perl script which can used to get authenticate on relay server by a domain user account and password and send emails. Basically in our organisation system level authentication is blocked and we need to get authenticated via user level authentication on smtp... (1 Reply)
Discussion started by: sahil_shine
1 Replies

5. UNIX for Advanced & Expert Users

mailx Vs sendmail to send internal emails to exchange

Hi Gurus, I have been searching for this around, but sendmail seems complicated and not sure if "mail" command would do, since all what I need to send internal emails from my solaris 10 box to our exchange server. Would the mailx or mail command do ? I tried the : # mailx -s test... (2 Replies)
Discussion started by: aladdin
2 Replies

6. UNIX for Dummies Questions & Answers

How do I configure Linux server to be able to send emails internally?

Hi The script: #!/bin/sh #set -x # set admin email so that you can get email ADMIN="myemailaddress" # set alert level ALERT=4 df -HP | grep -vE '^Filesystem|tmpfs|cdrom' | awk '{ print $5 " " $1 }' | while read output; do #echo $output usep=$(echo $output | awk '{ print... (5 Replies)
Discussion started by: wbdevilliers
5 Replies

7. Shell Programming and Scripting

uuencode mailx - send multiple emails

The following is an extract from one of my Shell Scripts which uses uuencode and mailx to send an email with multiple attachements: uuencode $LOG_REPORT $(basename $LOG_REPORT) uuencode $HTML_FILE $(basename $HTML_FILE ) ) | if then mailx -b "$COPY_TO" -s "$SUBJECT" -r "$MAIL_FROM"... (2 Replies)
Discussion started by: suthera
2 Replies

8. UNIX for Dummies Questions & Answers

Send Emails in Sco

I am trying to setup unix to send an email to an outside email address. I have searched the web and found a lot of sites. The problem is I can't figure out what I am supposed to do exactly. I have tried installing sendmail but I get m4 version errors. I then tried to install m4 which seemed to... (1 Reply)
Discussion started by: stufine
1 Replies

9. Shell Programming and Scripting

send emails to groups

Hi, I am trying to send alert emails through my script to users using a group name like DL_Failure Group@company.com but I am not able to send it, I thought it is because of the space in between and I tried to sedn is with quotes "DL_Failure Group@company.com" but that too did not work....I... (2 Replies)
Discussion started by: mgirinath
2 Replies

10. UNIX for Dummies Questions & Answers

Using mail to send HTML emails

Hi, I'm a programmer not a sys admin, so please excuse this if it seems a little out of place, but I think it applies to this forum. When I send my HTML newsletter from the server it comes in as plain text on some email programs and not others. Eudora is fine; Outlook Express, Hotmail, and... (2 Replies)
Discussion started by: dmennis
2 Replies
Login or Register to Ask a Question