- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Sendmail config problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2005 05:12 AM
тАО07-20-2005 05:12 AM
Sendmail config problem
I have a little trouble configuring sendmail like i want it. From this machine, i would like to be able to send mails to any user/machine/domain.
Presently, i can send mail to local users:
# mailx -s 'testing' nicolas < message
I can also send mail to users on other *nix machines in my lan, in the same domain or not:
# mailx -s 'testing' nicolas@host.otherdomain.lan < message
What i cannot do, is send mail to an outside email account that goes through our exchange server:
# mailx -s 'testing' nicolas@outside.com < message
I'm not too sure which parameter fixes this. If I configure SMART_HOST as our exchange server, then I can't send any mail to any user accounts on *nix machines because exchange doesn't know these users/machines. So how do I tell sendmail to discriminate in function of the domain name?
I thought I had it with the /etc/mail/access file by tweaking it to RELAY only the domains inside our lan; then I tried the mailertable to specify the outside.com messages should be routed to our exchange server. No luck.
I attached my sendmail.mc, along with access and mailertable files.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2005 08:48 AM
тАО07-20-2005 08:48 AM
Re: Sendmail config problem
The /etc/mail/local-host-names should contain the domain/s name/s for the domains that you want to accept mail, and the DNS should resolve the MX resource record properly to the host.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2005 06:22 PM
тАО07-20-2005 06:22 PM
Re: Sendmail config problem
Try using the sendmail command instead of mail command:
sendmail -f vaildname@yourdomain.com touser@userdomain.com < yourmessege.txt
Cheers
Vipul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2005 09:03 PM
тАО07-20-2005 09:03 PM
Re: Sendmail config problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2005 12:15 AM
тАО07-21-2005 12:15 AM
Re: Sendmail config problem
But now, I can't send anything to other *nix systems.
Ivan, looks like you were right about a DNS issue. That's fixed now.
"The /etc/mail/local-host-names should contain the domain/s name/s for the domains that you want to accept mail"
So I put in local-host-names the domain name from which this server can receive, or to which it can send, or both?
Bejoy, how do I set the mailertable if I have 5 or 6 *nix systems in the same domain?
Thanks again guys, for your very appreciated help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2005 02:06 AM
тАО07-21-2005 02:06 AM
Re: Sendmail config problem
I'm going to leave to thread open a little longer though, cause i know i'm bound to have problems as soon as i start tackling procmail...in about 15 minutes...
;-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2005 02:01 PM
тАО07-21-2005 02:01 PM
Re: Sendmail config problem
abc.unix.com
bcd.unix.com
cde.unix.com
in ur mailertable where
test
hi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2005 04:00 AM
тАО07-26-2005 04:00 AM
Re: Sendmail config problem
I'm having trouble creating the procmail recipes that I want though.
I want to filter everything destined for nicolas@abc.unix.com to a folder, say /home/nicolas.
So i have this recipe:
:0:
* ^TOnicolas@abc.unix.com
/home/nicolas/
That doesn't work though. Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2005 03:11 PM
тАО07-26-2005 03:11 PM
Re: Sendmail config problem
test@abc.unix.com:
This will append a copy to the specified filename , if u remove the actual alias, it will only append to the file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2005 04:12 PM
тАО07-26-2005 04:12 PM
Re: Sendmail config problem
:0
* ^To:.*nicolas@abc.unix.com
/home/nicolas/foldername
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2005 02:15 AM
тАО09-26-2005 02:15 AM