LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-03-2003, 11:30 PM   #1
Hessian Rider
LQ Newbie
 
Registered: Nov 2002
Posts: 9

Rep: Reputation: 0
Question Sendmail and Relaying


I'm having a serious problem with sendmail and I haven't been able to solve it for quite some time:

We are running a mail server on one of our machines and so far mail can only be sent from our hosts or to our hosts.
A user using a machine that is not of our network can not send mail to other domains - only to our own.
I want to allow our users to be able to send their mail through our server from remote destinations ( say, their PCs at home).
For example I want bob to be able to send mail to hotmail.com for instance(not our domain, obviously from his PC at home which is on dila-up with dynamic IP.
I figured that if i include him in the access file everything would be ok, but it's still not working.
My sendmail config is:

divert(-1)
include(`/usr/lib/sendmail-cf/m4/cf.m4')
OSTYPE(`linux')dnl
define(`confDEF_USER_ID',``8:12'')
define(`confPRIVACY_FLAGS', `authwarnings,needmailhelo,noexpn,novrfy')
define(`confTO_QUEUERETURN', `4d')
define(`confTO_QUEUEWARN', `4h')
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')
undefine(`UUCP_RELAY')
undefine(`BITNET_RELAY')
FEATURE(`redirect')
FEATURE(`always_add_domain')
FEATURE(`use_cw_file')
FEATURE(`local_procmail')
FEATURE(`nouucp')
FEATURE(`mailertable', `hash -o /etc/mail/mailertable')
FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable')
FEATURE(`access_db', `hash -o /etc/mail/access')
FEATURE(rbl,`rbl.maps.vix.com',` Mail from $&{client_addr} rejected; see http://www.mail-abuse.org/rbl/')
FEATURE(rbl,`dul.maps.vix.com',`Mail from $&{client_addr} rejected; see http://www.mail-abuse.org/dul/')
FEATURE(rbl,`relays.mail-abuse.org',` Mail from $&{client_addr} rejected; see http://www.mail-abuse.org/rss/')
MAILER(`procmail')
MAILER(`smtp')


Thank you for any advice.
 
Old 03-04-2003, 03:26 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
all i can think of is that you've not got the right info in your access file, probably /etc/mail/access, try posting it here. The access_db feature works fine for me, and everythign else looks ok.
Code:
# by default we allow relaying from localhost...
localhost.localdomain           RELAY
localhost                       RELAY
127.0.0.1                       RELAY
192.168.0.2                     RELAY
192.168.0.1                     RELAY
you've quite possibly just got them on ACCEPT, not RELAY. any error messages you could provide?
 
Old 03-04-2003, 07:53 AM   #3
Hessian Rider
LQ Newbie
 
Registered: Nov 2002
Posts: 9

Original Poster
Rep: Reputation: 0
In order to allow realaying from any network I made my access
file account-based - e.g:
user@mydomain.com RELAY
user2@mydomain2.com RELAY

My whole access file is like this.

I believed this way users will be able to use my MTA from anywhere to anywhere.
It appears that sendmail checks the recipient and if it is not local (@mydomain.com, @mydomain2.com) it rejects it.
I have removed blacklist_recipients, as I thought this makes sendmail check the recipient but it still does the check.

the logs look like this:

Mar 4 06:30:25 mail sendmail[4597]: GAA04597: ruleset=check_rcpt, arg1=<st_gyoshev@hotmail.com>, relay=[217.18.244.156], reject=550 <st_gyoshev@hotmail.com>... Relaying denied
Mar 4 06:30:25 mail sendmail[4597]: GAA04597: from=<alex_adm@intermedia.bg>, size=0, class=0, pri=0, nrcpts=0, proto=SMTP, relay=[217.18.244.156]
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail Relaying R4z0r Linux - Networking 2 10-03-2004 02:15 PM
relaying in sendmail spikes57 Linux - Networking 6 02-27-2004 10:44 AM
Sendmail relaying SchoolITguy Linux - Networking 0 10-18-2002 06:17 PM
sendmail relaying atin Linux - Software 1 10-01-2002 10:21 AM
Sendmail 8.11 relaying?? magyartoth Linux - General 3 04-29-2002 03:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration