The command:
works while the command:
hangs because the mailx command reads the text to be sent as the body of your message from standard input. When you type the second command above it is sitting there waiting for you to type in the text to be sent.
If you type in the text that you want to be the body of your message after entering the 2nd command above and then hit Ctl-D to terminate the message, the command should do what you seem to expect.
True.. while i understand that > the main problem is with the OP test.sh script.
---------- Post updated at 09:40 AM ---------- Previous update was at 05:22 AM ----------
I got the line causing the email to fail and not showup in my inbox.
I changed this line test.sh From
to
and now it works.
Can you tell me why is this line print "From: Prod@`hostname`.mycomp.com"FAILS to send out emails and what is the FIX ??
Last edited by mohtashims; 04-25-2017 at 06:00 PM..
Hi
A) I am able to send eMail using mailx from a UNIX ( solaris 8 ) host to my Outlook-email-ID : FName.Surname@Citigroup.com ( This is NOT my actual -eMail-ID). But in Outlook the "From :" eMail address is displayed as
" usr1@unix-host1.unregistered.email.citicorp.com " .i.e the words... (2 Replies)
Hi All
• Regarding installing sendmail pkg in server, I tried to install the pkg but getting the below errors as shown below - any idea on this?
• But I have successfully installed sendmail-cf pkg in the server box
• But that is not sufficient we also need to install sendmail pkg
• Help is... (2 Replies)
I have several HP/UX nodes running Sendmail 8.13 ...some work fine, some don't.
When an Email is coming in, the 'DATA' command never ends. The other side of the connection gets to the point where it enters the '.' on a line by itself, but sendmail doesn't accept it...if fact it keeps on holding... (8 Replies)
I need to reconfigure Sendmail to strip the SMTP email addresses from all email and replace them with a single address used for testing purposes.
I have a vended application hosted on Solaris 10 servers. I have access to support the application framework (IBM WebShere Application Server 6.1),... (1 Reply)
Hi,
Can anyone kindly provide some information about how to populate the subject field of the email while using the sendmail utility ? Itried the following command line argument :
echo -e "Body of the email" | /usr/lib/sendmail -f from@from.com -t to@to.com -s " Subject of the email"
... (4 Replies)
Hi ,
I'm using sendmail command to send a email.
To send a email sendmail taking 3minutes to complete the process.
Is there any configuration needs to be done in server or another solution is there to resolve this issue.
Thanks in Advance.
Regards
Latika (1 Reply)
Hi everyone,
I'm trying to send an email on unix using sendmail command. For setting the priority to high I use:
X-Priority: 1
And it works on HP but when I tried it on AIX the email is sent but no priority!!
Anyone can help me
Thanks in advance,
Hiposh (3 Replies)
I have a longstanding issue on my CentOS 5.6 VM where I am unable to send email from my PHP application.
This is the last bunch of lines from my /var/log/maillog file.
Feb 14 10:29:16 dev53 sendmail: s1EATEEo004637: Authentication-Warning: www.craig.dev-crmpicco.lan: apache set sender to... (2 Replies)
Hi All,
Sorry, for the double posting. Don't know how to move to a different forum.
I am very new to Unix. I have a test server running FreeBSD 10.1 and SendMail 8.14.9.
I need to filter incoming emails based on the sender's email address or domain and forward them to another address on a... (1 Reply)
Discussion started by: simplemind
1 Replies
LEARN ABOUT DEBIAN
sendmailconfig
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)