local mail relay problem in Sendmail


 
Thread Tools Search this Thread
Operating Systems Linux local mail relay problem in Sendmail
# 1  
Old 09-13-2004
local mail relay problem in Sendmail

I have a linux box. Sendmail is work fine in this box. The only problem I am facing is whenever I send mail using the mail command to the outside world or to root@localhost, I get this error -

127.0.0.1 localhost denied from relaying

The command I used to send mail is -

Ls -l | mail -s “listing” root@localhost

The content of my /etc/mail/access -

Localhost RELAY
Localhost.localdomain RELAY
172.128.x RELAY

In my sendmail.mc file if I change the ip address to 12.0.01 it works, but in this case my rest of the users are unable to send mail through this server to the outside world.

DAEMON_OPTIONS(`Port=smtp,Addr=172.128.64.10, Name=MTA')dnl

Currently the ip address in the sendmail.mc file is of my local network/lan.

Please let meknow what could be the problem and how to rectify this.

Regards,
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Sendmail relay failing

Hi Techies Bit new to sendmail thingy. I have a Solaris 10 box. There is a request generated by customer that they want Solaris 10 box to use as relay an external smtp server. the smtp server is updated in hosts file and it is pingable. I have updated by "vi" /etc/mail/sendmail.cf # ...... (0 Replies)
Discussion started by: khaniqshahid
0 Replies

2. SCO

Sendmail delivers mail to local user if it exists instead of passing it to the smart relay

Environment: SCO Unix Openserver 6 Sendmail ver: 8.11.3 I just put this server online replacing it's old counterpart, same OS on new machine. There are many different servers on this domain, windowssrv.thisdomain.com, oldunix.thisdomain.com, and the new newunix.thisdomain.com just to name a... (2 Replies)
Discussion started by: checkpro
2 Replies

3. UNIX for Dummies Questions & Answers

sendmail weird Local Delivery Problem

Hi Guys, Just joined the forum though I have been lurking here for many years now. Wondering if anyone can help me out with a problem that I'm currently having. :wall: I have a few servers that are relaying all email off of the box to an exchange server. There is a SmartHost configured in... (7 Replies)
Discussion started by: PACETREE
7 Replies

4. Red Hat

add relay to sendmail.cf

Hi, I notice that my relay on sendmail.cf is just "DS" and no ip. So I guess, it's using the local DNS to relay my mail which sometimes being spammed. I would like to add a new relay ip "DSxxx.xxx.xxx.xxx" on sendmail.cf. What do I need to edit sendmail.cf? Do I just use vi or m4? ... (4 Replies)
Discussion started by: itik
4 Replies

5. UNIX for Advanced & Expert Users

Problem with sendmail procmail spamassasin & relay

I have been working on setting up a mail relay. I have just about everything working except for the procmail part. The configuration is as follows: Internet -> mailrelay -> mail server | spamassassin server I have spamassassin running on a seperate... (3 Replies)
Discussion started by: hardesty
3 Replies

6. Solaris

Sendmail relay problem

I have a sendmail issue When I try to send a mail message using mailx I get a "connection refused by mail14.messagelabs.com" error. relay=mail14.messagelabs.com., dsn=4.0.0, stat=Deferred: Connection refused by mail14.messagelabs.com However, mail14.messagelabs.com doesn't exist. The... (4 Replies)
Discussion started by: soliberus
4 Replies

7. UNIX for Dummies Questions & Answers

Sendmail open relay

All I am having a bit of a problem with my sendmail smtp server. The environment: Redhat Linux 8 sendmail-8.12.8-9.80. The mailserver is used by our application to send mail notifications to users on the system. The application is hosted on 2 different servers (separate domains)... (2 Replies)
Discussion started by: skotapal
2 Replies

8. UNIX for Advanced & Expert Users

sendmail/mail masquerade problem

I have a SCO 5.06 box running sendmail 8.11. I have set up sendmail to masquerade the domainname as bar.com. ie in the sendmail.cf file the directive DMbar.com is set. When I send mail using mail/mailx, it appends the local hostname "foo" to the masquerade address and inserts this into... (1 Reply)
Discussion started by: m.szylkarski
1 Replies

9. Cybersecurity

Sendmail Relay

I'm trying to get my Solaris 7 sendmail server to allow external clients to send to external recipients. I know this has to do with relaying, but I'm not sure how unsafe I have to get to allow this. I simply need for users to login from any domain and be allowed to send mail via SMTP to any... (4 Replies)
Discussion started by: Solaris
4 Replies

10. Programming

Sendmail & mail.local + MySQL API

I've searched this message board, and the newgroups THOROUGHLY, in search of any information towards implenting the MySQL API with C... I'm a "beginner" to the C language I suppose, and i've made a few functions in C that can be implemented into the source code of Sendmail/mail.local, so that any... (2 Replies)
Discussion started by: CGrusden19
2 Replies
Login or Register to Ask a Question
PUSH(8) 						    BSD System Manager's Manual 						   PUSH(8)

NAME
push -- fetch mail via POP SYNOPSIS
push [-5 | --krb5] [-v | --verbose] [-f | --fork] [-l | --leave] [--from] [-c | --count] [--headers=headers] [-p port-spec | --port=port-spec] po-box filename DESCRIPTION
push retrieves mail from the post office box po-box, and stores the mail in mbox format in filename. The po-box can have any of the follow- ing formats: 'hostname:username' 'po:hostname:username' 'username@hostname' 'po:username@hostname' 'hostname' 'po:username' If no username is specified, push assumes that it's the same as on the local machine; hostname defaults to the value of the MAILHOST environ- ment variable. Supported options: -5, --krb5 use Kerberos 5 (if compiled with support for Kerberos 5) -f, --fork fork before starting to delete messages -l, --leave don't delete fetched mail --from behave like from. -c, --count first print how many messages and bytes there are. --headers=headers a list of comma-separated headers that should get printed. -p port-spec, --port=port-spec use this port instead of the default 'kpop' or '1109'. The default is to first try Kerberos 5 authentication and then, if that fails, Kerberos 4. ENVIRONMENT
MAILHOST points to the post office, if no other hostname is specified. EXAMPLES
$ push cornfield:roosta ~/.emacs-mail-crash-box tries to fetch mail for the user roosta from the post office at ``cornfield'', and stores the mail in ~/.emacs-mail-crash-box (you are using Gnus, aren't you?) $ push --from -5 havregryn tries to fetch From: lines for current user at post office ``havregryn'' using Kerberos 5. SEE ALSO
from(1), pfrom(1), movemail(8), popper(8) HISTORY
push was written while waiting for movemail to finish getting the mail. HEIMDAL
May 31, 1998 HEIMDAL