Link to home
Start Free TrialLog in
Avatar of adamgasior
adamgasiorFlag for Poland

asked on

after spamassassin installation I cannot send out email to external servers

Hi,
After I have installed spamassassing I cannot send out email to external addresses. I can receive emails from external addresses as well as from local users. I also can send out emails to the local users

After I try to send an email to external address (using outlook) I am getting the following error;

         550 5.7.1 <adam.gasior@gmail.com>... Relaying denied. Proper authentication required.



My /etc/mail/sendmail.mc look as follows:

divert(0)dnl
define(`_USE_ETC_MAIL_')dnl
include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
VERSIONID(`$Id: generic-linux.mc,v 8.1 1999/09/24 22:48:05 gshapiro Exp $')
OSTYPE(`debian')dnl
DOMAIN(`debian-mta')dnl
dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
dnl undefine(`confHOST_STATUS_DIRECTORY')dnl            #DAEMON_HOSTSTATS
dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
DOMAIN(generic)dnl
INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/sendmail/spamass.sock, F=,T=C:15m;S:4m;R:4m;E:10m')dnl
define(`confAUTH_MECHANISMS', `LOGIN PLAIN')dnl
TRUST_AUTH_MECH(`LOGIN PLAIN')dnl
FEATURE(`no_default_msa')dnl
DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
DAEMON_OPTIONS(`Port=587, Name=MSA, M=Ea')dnl
MAILER(local)dnl
MAILER(smtp)dnl

Regards,

Adam Gasior
Avatar of http:// thevpn.guru
http:// thevpn.guru
Flag of Denmark image

Your friend's domain is retch.org.  You wish to allow your friend to use your mail server.  The box he will be sending mail from is dry.retch.org.

You would add the following entries to the files on your mail server:

    /etc/mail/relay-domains

        dry.retch.org

        The above tells your mail server to accept outgoing mail from the host dry.retch.org.

    /etc/mail/sendmail.cw

        retch.org

The above tells your mail server to accept incoming mail for the domain retch.org (after sendmail version 8.10, this file is local-host-names).


From http://www.freebsddiary.org/relay.php

and checkout

http://www.akadia.com/services/sendmail_relay.html

ASKER CERTIFIED SOLUTION
Avatar of WizRd-Linux
WizRd-Linux
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of adamgasior

ASKER

thanks- this is exactly what I wanted