sendmail mail server does not accept sending mail from remote clients

sendmail mail server does not accept sending mail from remote clients

Post by J?rg Reiner » Wed, 31 Oct 2001 01:02:07



Hi,

I just have set up a linux box as mail server for our company. Everything
works fine if I access the mail server from the intranet. I am also able
to access my mails from home. The problem I have got is that I am not
able to sent mail using this mail server.

How can I setup sendmail on this server to accept relaying mail from
the internet for authorized users. I have to logon with username/password
to get a connection to the mailserver and read mails but why does it
not ask for permission when trying to send mails.

I am using Suse 7.2 with sendmail 8.10 using IMAP to access mails.
The server relays mail from the intranet but not from internet.
I know that in the last versions of sendmail relaying was disabled because
this feature was used by spamers. But how can I allow users to send mails
when they want to send mails from home.

Sendmail has a lot of options which can be modified but I am not familiar
with all this stuff.

I would be happy about anything related to setting up sendmail as mail server
for a company.

=========================================================================
           Joerg Reiners, Systemadministration & Development

                           - I E S  -
                  Integrated Exploration Systems

                       Bastionsstr. 11-19
                    D-52428 Juelich, Germany


 http://www.ies.de                              phone: ++49 2461 9360 33
  ftp://ftp.ies.de                                fax: ++49 2461 9360 90
=========================================================================

 
 
 

sendmail mail server does not accept sending mail from remote clients

Post by Michael Heimin » Wed, 31 Oct 2001 04:30:03



Quote:

> Hi,

> I just have set up a linux box as mail server for our company.
> Everything works fine if I access the mail server from the intranet.
> I am also able to access my mails from home. The problem I have got
> is that I am not able to sent mail using this mail server.

> How can I setup sendmail on this server to accept relaying mail from
> the internet for authorized users. I have to logon with
> username/password to get a connection to the mailserver and read
> mails but why does it not ask for permission when trying to send
> mails.

You're checking your POP3/IMAP server, this has nothing to do with
SMTP.  http://www.sendmail.org/email-explained.html for more info.

Quote:> I am using Suse 7.2 with sendmail 8.10 using IMAP to access mails.
> The server relays mail from the intranet but not from internet.
> I know that in the last versions of sendmail relaying was disabled
> because this feature was used by spamers. But how can I allow users
> to send mails when they want to send mails from home.

> Sendmail has a lot of options which can be modified but I am not
> familiar with all this stuff.

> I would be happy about anything related to setting up sendmail as
> mail server for a company.

Some excerpts from my own post, regarding this question:

Check http://www.sendmail.org/~ca, the newer sendmail versions do
contain support for STARTTLS and AUTH. You need a MUA which supports
this too.

Read /usr/share/sendmail/README which explains the usage of m4, to
genererate a new sendmail.cf.

Another way to allow relaying for remote users, is a POP before SMTP
'hack' which uses a perl script that dynamically updates sendmails  
access.db and works great.

Additionally, there's a great book from O'Reilly called
'sendmail' it has >1000 pages and explains the basics... sendmail is
IMHO one of the most complicated servers to setup in any UNIX
environment.

At least there is comp.mail.sendmail, be sure to check the docs
before and never ever edit sendmail.cf, unless you're really sure you
know what you're doing.

Michael Heiming

 
 
 

sendmail mail server does not accept sending mail from remote clients

Post by Mike Johnso » Thu, 01 Nov 2001 08:50:17


Hello,

There is a file called "access" and "access.db" on redhat boxen in
/etc/mail. (Sorry, it's been a long time since I've used SuSE, but the
idea is the same.)

By default it looks something like:

localhost.localdomain           RELAY
localhost                       RELAY
127.0.0.1                       RELAY

That means it'll allow people to send email from these domains. If you
want to add your home computer, you could add the line "<your domain>
RELAY". Rebuild the .db file, and things should be groovy.

If that's not what you're looking for, sendmail also supports smtp
authentication, but I've never used it. Check out sendmail.org for
information there.

- Mike Johnson



Quote:> Hi,

> I just have set up a linux box as mail server for our company.
> Everything works fine if I access the mail server from the intranet. I
> am also able to access my mails from home. The problem I have got is
> that I am not able to sent mail using this mail server.

> How can I setup sendmail on this server to accept relaying mail from the
> internet for authorized users. I have to logon with username/password to
> get a connection to the mailserver and read mails but why does it not
> ask for permission when trying to send mails.

> I am using Suse 7.2 with sendmail 8.10 using IMAP to access mails. The
> server relays mail from the intranet but not from internet. I know that
> in the last versions of sendmail relaying was disabled because this
> feature was used by spamers. But how can I allow users to send mails
> when they want to send mails from home.

______________________________________________________________________________
Posted Via Binaries.net = SPEED+RETENTION+COMPLETION = http://www.binaries.net
 
 
 

sendmail mail server does not accept sending mail from remote clients

Post by Herb Stei » Thu, 01 Nov 2001 13:45:49



Quote:> Hello,

> There is a file called "access" and "access.db" on redhat boxen in
> /etc/mail. (Sorry, it's been a long time since I've used SuSE, but the
> idea is the same.)

> By default it looks something like:

> localhost.localdomain RELAY
> localhost RELAY
> 127.0.0.1 RELAY

> That means it'll allow people to send email from these domains. If you
> want to add your home computer, you could add the line "<your domain>
> RELAY". Rebuild the .db file, and things should be groovy.

That brings up an interesting point. There is a Makefile in /etc/mail that
rebuilds all the data bases. Untill I renamed the Makefile, my
virtusertable.db got corrupted weekly. Anyone know why?

> If that's not what you're looking for, sendmail also supports smtp
> authentication, but I've never used it. Check out sendmail.org for
> information there.

> - Mike Johnson



> > Hi,

> > I just have set up a linux box as mail server for our company.
> > Everything works fine if I access the mail server from the intranet. I
> > am also able to access my mails from home. The problem I have got is
> > that I am not able to sent mail using this mail server.

> > How can I setup sendmail on this server to accept relaying mail from the
> > internet for authorized users. I have to logon with username/password to
> > get a connection to the mailserver and read mails but why does it not
> > ask for permission when trying to send mails.

> > I am using Suse 7.2 with sendmail 8.10 using IMAP to access mails. The
> > server relays mail from the intranet but not from internet. I know that
> > in the last versions of sendmail relaying was disabled because this
> > feature was used by spamers. But how can I allow users to send mails
> > when they want to send mails from home.

____________________________________________________________________________
__
Quote:> Posted Via Binaries.net = SPEED+RETENTION+COMPLETION =

http://www.binaries.net
--
Herb Stein
The Herb Stein Group
www.herbstein.com

314 952-4601