We help IT Professionals succeed at work.

after spamassassin installation I cannot send out email to external servers

adamgasior
adamgasior asked
on
246 Views
Last Modified: 2013-12-16
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
Comment
Watch Question

Top Expert 2008

Commented:
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

This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
thanks- this is exactly what I wanted

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.