03-24-2010
There is so much left out here. What Unix? You might be running a modern Linux, Solaris, some old SCO system or who knows what and the issues of sending mail are going to vary with those.
What is "file2"? If it's just text, that's fine, but if not it's going to at least need to be uuencoded. In either case, did you want to end it so that it shows up in the body of the email or as an attachment? If you want it attached, you need "mutt" or something like that.
You say "mail services are running". How do you know that? Just because something can do local mail doesn't mean it is configured correctly for internet mail.
You might want to look at
CleanCode Email for a nice little command line thing that can bypass any local mail server if that's the source of the problem.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have set up in Solaris to email me and I received emails on the OS level. However, I don't get the mail in my MS Outlook. Please advise.
Thanks in advance. (3 Replies)
Discussion started by: simt
3 Replies
2. Shell Programming and Scripting
HI
i wrote schell script to send e-mail automatically.
it works only e-mail for our company.say for example,
company name is : abc,
example: joe@abc.com
every body is receiving with xxx@abc.com (abc.com)
if any body from outside of our company like
joe@xyz.com.(xyz.com) are not... (3 Replies)
Discussion started by: raosurya
3 Replies
3. Solaris
Hi All,
I am working with solaris 5.9 servers.After some patch installation my mailx is not working in the server.I am using IBM Lotus Notes.
Please help me to solve this issue (4 Replies)
Discussion started by: Renjesh
4 Replies
4. UNIX for Dummies Questions & Answers
HI,
I am sending a html attachment with the help of mailx and uuencode command ..but it is not working properly.. :confused:
Following are the commands i tried out.
parmdir=/opt/dwqa1/TEST/status_test
uuencode $parmdir/some.html $parmdir/some.html | mailx -s TEST ajoshi@yahoo.com
But in... (5 Replies)
Discussion started by: Amey Joshi
5 Replies
5. Shell Programming and Scripting
Hi All,
I am strugging with mailx.
I have a shell script which triggers mail when executed.
I have mailx utility installed in system under /usr/bin/mailx but still when that script executes i am not getting mails..any idea why strange behaviour..?
Tha:(nks in advance
Usha (2 Replies)
Discussion started by: usha rao
2 Replies
6. Solaris
i am supporting a server running Solaris 5.6.I don't know if the mail is configured on this server.
i ran the following commands and got the corresponding output.
#which mailx
/usr/bin/mailx
#ps -ef | grep sendmail
root 601 1 0 Jan 10 ? 0:01 /usr/lib/sendmail... (1 Reply)
Discussion started by: asalman.qazi
1 Replies
7. Shell Programming and Scripting
Hello,
I have two unix boxes..
One of the unix box version is
Linux iduxlys 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
I have shell script which has the below script.
cat xyz.log|mailx -s "export is Successful" \ xyz.xyz@xyz
The above... (3 Replies)
Discussion started by: govindts
3 Replies
8. Shell Programming and Scripting
I am using mailx command in my script to attach a file and send an email. I need to attach a csv file and send email to a mail id -
I am using
uuencode output.csv output.csv | mailx -s "test mail" xyz@abc.com
This will send a mail with scrambled text in body.
am i missing something ?... (4 Replies)
Discussion started by: Sriranga
4 Replies
9. Shell Programming and Scripting
I m trying to send o/p of one file using mailx command but is not working
PFB command :
cat healthchecklog | mailx -s "HEALTH CHECKS" abc@jkl.com
also I have checked the ps -ef for mailx which is giveing below o/p
ps -ef | grep mail
root 364 1 0 Jun 08 ? ... (11 Replies)
Discussion started by: Jcpratap
11 Replies
10. Solaris
after a new patch set on the 14th. I noticed that mailx stopped working, as far a I can tell that is the only thing that changed.
solaris 10 OS
it seems everything is the same, sendmail seems to be running
root@server # ps -ef | grep -i sendmail
smmsp 687 1 0 10:42:25 ? ... (0 Replies)
Discussion started by: goya
0 Replies
LEARN ABOUT DEBIAN
makepercentrelay
MAKEPERCENTRELAY(8) Double Precision, Inc. MAKEPERCENTRELAY(8)
NAME
makepercentrelay - Build a list of %-relayed domains
SYNOPSIS
makepercentrelay
DESCRIPTION
makepercentrelay reads /etc/courier/esmtppercentrelay.dir and creates /etc/courier/esmtppercentrelay.dat which is a binary database file.
The files /etc/courier/esmtppercentrelay and /etc/courier/esmtppercentrelay.dat specify a list of "percent-hack" domains.
/etc/courier/esmtppercentrelay is a plain text file, containing one domain per line. The Courier mail server loads the contents of
/etc/courier/esmtppercentrelay into memory, so if you have a lot of domains, you will want to use the binary database file. The
makepercentrelay command reads /etc/courier/esmtppercentrelay.dir, which can be either a plain text file itself, or a directory containing
plain text files. All files in the subdirectory are concatenated, and the binary database file is created from the result.
the Courier mail server can use both /etc/courier/esmtppercentrelay and /etc/courier/esmtppercentrelay.dat at the same time. Usually you
would put a couple of your most frequent domains in /etc/courier/esmtppercentrelay, then put the rest in
/etc/courier/esmtppercentrelay.dir, and use makepercentrelay to turn it into a database file.
"percent-hack" domains are a list of domains for which the Courier mail server accepts mail via ESMTP addressed as
"local%percent.hack.domain@local.domain", where "percent.hack.domain" is a domain found in /etc/courier/esmtppercentrelay or
/etc/courier/esmtppercentrelay.dat, and "local.domain" is any domain found in /etc/courier/locals. The Courier mail server removes the
local domain, and rewrites the address as "local@percent.hack.domain", then attempts to deliver it.
The percent hack applies only to mail received via ESMTP. The Courier mail server does not check this list of domains if the message is
received via any other way (such as by running /usr/bin/sendmail directly from the command line). "percent.hack.domain" would likely to be
a domain that the Courier mail server knows how to handle via some other means. It might be an entry in /etc/courier/aliases, or an entry
in /etc/courier/esmtproutes.
SEE ALSO
esmtpd(8)[1], makealiases(8)[2].
AUTHOR
Sam Varshavchik
Author
NOTES
1. esmtpd(8)
[set $man.base.url.for.relative.links]/esmtpd.html
2. makealiases(8)
[set $man.base.url.for.relative.links]/makealiases.html
Courier Mail Server 08/30/2011 MAKEPERCENTRELAY(8)