10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Gurus,
I have a solaris zone. I am finding a issue in the situation below.
When I tried to send a mail in this format its failing.
: mailx -s "test mail f" xxxxxx@yy.com
But its working just fine if I use echo.
echo "test body"|mailx -s "test mail " xxxxxxx@yy.com
Is there... (1 Reply)
Discussion started by: rama krishna
1 Replies
2. Linux
We have configured mailx Linux server. When send mail from Linux server it is not going
How to trouble shoot the root cause step by step (3 Replies)
Discussion started by: pmsuper
3 Replies
3. Shell Programming and Scripting
Hi All,
Can anyone please provide the command for sending an mail with attachment using mailx command.
Thanks in Advance :)
Regards,
Siram. (3 Replies)
Discussion started by: Sriram.Vedula53
3 Replies
4. UNIX for Advanced & Expert Users
whn mail command fails. Please tell various reasons.
Thanks for the reply (2 Replies)
Discussion started by: ratna
2 Replies
5. UNIX and Linux Applications
Hi,
I am not able to send direct mails from our unix server to our lotus notes id. It was fine until we upgrade our Lotus notes server. What are the changes need to add when we upgrade Lotus notes. Please advice.
It run in sh file
This is the statement
uuencode $RTDIR/$filename... (0 Replies)
Discussion started by: rajani_p
0 Replies
6. Shell Programming and Scripting
Hi,
Thanks in Advance !!
I have a korn script which is used to mail the reports to the users.
I'm using the mailx utility. The uid used for running the script is "cronman",
so the mails recieved by users are id FROM:"cronman".
Now i want to change the FROM address to another user name... (2 Replies)
Discussion started by: pradeep_desh
2 Replies
7. UNIX for Dummies Questions & Answers
If I use the "Mail" link instead of the "mail" link to ../mailx I get this error.
Mail so-n-so @whatever.com
mailx: NUL changed to @
Unknown command: "postmaster"
The email still goes through but i get the error.
If I use "mail" it goes thru without the error.
Any ideas?? (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies
8. UNIX for Dummies Questions & Answers
I want to send a message with an attachment from Unix using the following command:
uuencode $DIRNAME/$FILENAME1 | mailx -s "test subject" xyz@xyz
I need to attach the file and I also want a simple message body like "there is an error. Please check it".
Do I need to have this message body... (1 Reply)
Discussion started by: ssmith001
1 Replies
9. Shell Programming and Scripting
Is there any way that I can mailx to a distribution list without having a $HOME/.mailrc file?
We have a distribution list in Outlook for our group say group@something.com.
I am trting to do echo "Something"|mailx -s "Subject" group@something.com
it doesnt work
Any ideas?
Thanks (1 Reply)
Discussion started by: sm321
1 Replies
10. UNIX for Dummies Questions & Answers
How can I send a file of Unix usernames to everyone on the file without making an alias in my .mailrc file? Using a mailx command.
Thanks,
J.J. (2 Replies)
Discussion started by: JJJ
2 Replies
MAKEHOSTEDDOMAINS(8) Double Precision, Inc. MAKEHOSTEDDOMAINS(8)
NAME
makehosteddomains - Build a database of hosted domains
SYNOPSIS
makehosteddomains
DESCRIPTION
makehosteddomains rebuilds the contents of the /etc/courier/hosteddomains.dat database from the contents of /etc/courier/hosteddomains.
This can be either a file or a directory. If it's a directory, the contents of all the files in this directory are simply concatenated. The
makehosteddomains script must be run in order for any changes to /etc/courier/hosteddomains to take effect.
The function of /etc/courier/hosteddomains is very similar to the one of /etc/courier/locals. Both configuration files specify a list of
domains that are considered to be local domains - domains whose mailboxes are stored locally.
The difference is that domains listed in /etc/courier/locals are removed from addresses before their mailbox is looked up. For example, if
the domain "example.com" is listed in /etc/courier/locals, then the address <user@example.com> is delivered to a local mailbox named
"user". If this domain is listed, instead, in /etc/courier/hosteddomains, then the address <user@example.com> is delivered to a local
mailbox named "user@example.com". Usually you would use /etc/courier/locals to specify domains that correspond to your local system
accounts, that are looked up in your system's password database. The /etc/courier/hosteddomains file is usually used when you have
database-based virtual domains, that are maintained via an LDAP or a MySQL server. The Courier mail server's LDAP and MySQL authentication
modules will use the full E-mail address to query the LDAP or MySQL server for the location of the local mailbox that correspond to the
E-mail address. The Courier mail server's authuserdb authentication module can also use full E-mail addresses.
Contents of hosteddomains
The file /etc/courier/hosteddomains simply contains a list of domains, one per line, for example:
domain.com
example.org
Each domain can optionally be followed by a single tab character, in order to specify an alias for a domain, for example:
domain.com
mail.domain.com<TAB>domain.com
example.com<TAB>domain.com
First, we list the domain "domain.com" as a hosted domain. Then, we also list the domain "mail.domain.com", which is an alias for
domain.com. The Courier mail server will take any address of the form <address@mail.domain.com>, rewrite it as <address@domain.com>, and
attempt to deliver the mail to a local mailbox for that name. The third entry does the same for "example.com"; mail addressed to
<address@example.com> is delivered to the local mailbox <address@domain.com>.
alias@hosteddomain
This is a special local mail delivery rule for hosteddomain-listed domains. This rule allows the Courier mail server accept mail to any
address@hosteddomain, where "hosteddomain" is a domain listed in the hosteddomains file, but there is no corresponding account for
address@hosteddomain. To provide delivery instructions for any non-existing address in a hosteddomain-listed domain:
1) Create the local address alias@hosteddomain. For example, if the hosteddomains file contains "example.com", create the local account
alias@example.com. This should be a normal account, with its own home directory, userid and groupid.
2) Create $HOME/.courier-default file in this account, containing the delivery instructions. See the dot-courier(5)[1] manual page for
available delivery instructions.
NOTE that alias@example.com must be a real account, not a mail alias. If you want to forward alias@example.com to another address, put
forwarding instructions in the .courier-default file. However, alias@example.com can be a clone of another account (with the same home
directory, userid, and groupid).
"WILDCARD DNS"
Wildcard DNS is supported for hosteddomains by placing a single period character before the domain name. For example, the hosted domain
entry ".domain.com" will cause the Courier mail server to accept mail for "anything.domain.com".
The Courier mail server will accept mail for <address@any.thing.domain.com> and attempt to deliver it to the local mailbox
<address@any.thing.domain.com>, and if that fails then attempt to deliver the mail to the local mailbox <address@.thing.domain.com>, then
finally <address@.domain.com>
Note
There is a period after the '@' character. If you want all mail for "any.thing.domain.com" to be delivered as though it were sent to
"domain.com", you should define an alias for the domain, for example:
domain.com
.domain.com<TAB>domain.com
SEE ALSO
esmtpd(8)[2].
AUTHOR
Sam Varshavchik
Author
NOTES
1. dot-courier(5)
[set $man.base.url.for.relative.links]/dot-courier.html
2. esmtpd(8)
[set $man.base.url.for.relative.links]/esmtpd.html
Courier Mail Server 08/30/2011 MAKEHOSTEDDOMAINS(8)