SendMail conf for use externa SMTP server

Guillermo Garron guillermo.fedora at gmail.com
Fri Jul 7 15:45:25 UTC 2006


Thank you very much,
i did both and worked!

regards,

Guillermo.


On 7/7/06, Paul Howarth <paul at city-fan.org> wrote:
>
> Guillermo Garron wrote:
> > Hi all,
> >
> > I have a laptop with FC5 and wanted to use it as my smtp server and also
> > wanted to receive my logwatch reports each day.
> > the problem is that because all the battle against spam my laptop is no
> > accepted almos anywhere so i start to configure my sendmail server to
> > use an
> > externet smtp server.
> >
> > I followed this steps
> > ___________________________________
> > Step 4: add to your sendmail.mc in /etc:
> >
> >    FEATURE(`access_db')dnl
> >    FEATURE(`authinfo', `hash /etc/mail/authinfo')
> >    define(`SMART_HOST',`outgoing.verizon.net')dnl
> >    MASQUERADE_AS(verizon.net)dnl
> >    FEATURE(`allmasquerade')dnl
> >    FEATURE(`masquerade_envelope')dnl
> >    FEATURE(genericstable, `hash -o /etc/mail/genericstable')dnl
> >    GENERICS_DOMAIN_FILE(`/etc/mail/genericsdomain')dnl
> >
> > Step 5: copy the entire sendmail build subdirectory
> > sendmail-8-13.2/cf/cf to
> > /usr/share/sendmail-cf/
> >
> > Step 6: m4 /etc/sendmail.mc > /etc/sendmail.cf
> >
> > Step 7: add the following lines to the files /etc/mail/access,
> > /etc/mail/authinfo, /etc/mail/genericstable, /etc/mail/genericsdomain
> >
> >    access
> >        From:ME at verizon.net             RELAY
> >
> >    authinfo
> >        AuthInfo:outgoing.verizon.net "U:ME at verizon.net"
> > "I:<MY_VZ_ACCOUNT>" "P:<MY_VZ_PASSWORD>" "M:LOGIN PLAIN"
> >
> >    genericstable
> >        <MY_LOCAL_NAME> ME at verizon.net
> >
> >    genericsdomain
> >        localhost.localdomain
> >
> > Step 8: make the db files:
> >        makemap hash access.db < access
> >        makemap hash authinfo.db < authinfo
> >        makemap hash genericstable.db < genericstable
> >
> > Step 9: /etc/init.d/sendmail restart
> >
> > Step 10: test by:
> >
> >    > sendmail -bv ME at verizon.net
> >      Notice: -bv may give misleading output for non-privileged user
> >      ME at verizon.net... deliverable: mailer relay, host
> > outgoing.verizon.net, user ME at verizon.net
> >
> > _____________________________
> >
> > step from 1 to 3 are compiling the sendmail server, mine is already
> > compiled
> > even witch sasl support, ok, once i finished this steps i try to send an
> > email from the console using this
> >
> > mail me at yahoo.com
> > it worked since i was logged as my user in my laptop
> >
> > i realized that the emails send by root was not able to go out, and
> receive
> > a Domain not found error
> > i tried logged as root
> > mail me at yahoo.com
> > with no good results,
> >
> > this are the logs at my external smtp server using my user and root.
> > ----------------------
> > Jul  7 10:01:06 scz postfix/smtpd[16260]: connect from
> > host-65-173-60-214.acelerate.net[65.173.60.214]
> > Jul  7 10:01:07 scz postfix/smtpd[16260]: setting up TLS connection from
> > host-65-173-60-214.acelerate.net[65.173.60.214]
> > Jul  7 10:01:07 scz postfix/smtpd[16260]: TLS connection established
> from
> > host-65-173-60-214.acelerate.net[65.173.60.214]: TLSv1 with cipher
> > DHE-RSA-AES256-SHA (256/256 bits)
> > Jul  7 10:01:11 scz postfix/smtpd[16260]: 3FFBD4D8300: client=
> > host-65-173-60-214.acelerate.net[65.173.60.214], sasl_method=LOGIN,
> > sasl_username=ggarron
> > ________________________________________________________
> >
> > after that is all ok, it is the same as if i configure my thunderbird to
> > use
> > that server, with authentication
> > now loggin as root these are the results.
> >
> > -----------------------Jul  7 10:04:02 scz postfix/smtpd[16275]: connect
> > from host-65-173-60-214.acelerate.net[65.173.60.214]
> > Jul  7 10:04:02 scz postfix/smtpd[16275]: setting up TLS connection from
> > host-65-173-60-214.acelerate.net[65.173.60.214]
> > Jul  7 10:04:03 scz postfix/smtpd[16275]: TLS connection established
> from
> > host-65-173-60-214.acelerate.net[65.173.60.214]: TLSv1 with cipher
> > DHE-RSA-AES256-SHA (256/256 bits)
> > Jul  7 10:04:06 scz postfix/smtpd[16275]: NOQUEUE: reject: RCPT from
> > host-65-173-60-214.acelerate.net[65.173.60.214]: 450
> > <root at t30.alketech.com>:
> > Sender address rejected: Domain not found; from=<root at t30.alketech.com>
> > to=<
> > anyuser at yahoo.com> proto=ESMTP helo=<t30.alketech.com>
> > Jul  7 10:04:07 scz postfix/smtpd[16275]: disconnect from
> > host-65-173-60-214.acelerate.net[65.173.60.214]
> > ----------------------------------------
> > As you can see now it does not authenticate as my user on that server,
> and
> > is not uses SASL method, not even trying to login
> >
> > can anybody help me please?
>
> You could try removing:
>
> EXPOSED_USER(`root')dnl
>
> from your sendmail.mc, rebuild sendmail.cf and restart sendmail.
>
> Or you could use a genericstable entry to get root's email address
> rewritten as yours on the way out.
>
> Paul.
>
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/users/attachments/20060707/9c484294/attachment-0002.html 


More information about the users mailing list