Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Mar 2005 00:56:05 +0200
From:      Danny Pansters <danny@ricin.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: How to get send-pr/porttools working when on a cable (dsl)provider link -- Thanks
Message-ID:  <200503290056.06112.danny@ricin.com>
In-Reply-To: <20050328172502.1e0ed2b5.sheepkiller@cultdeadsheep.org>
References:  <200503280500.15465.danny@ricin.com> <4247C52B.2060509@xbsd.org> <20050328172502.1e0ed2b5.sheepkiller@cultdeadsheep.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 28 March 2005 17:25, you wrote:
> On Mon, 28 Mar 2005 10:49:47 +0200
>
> Florent Thoumie <flz@xbsd.org> wrote:
> > Danny Pansters a =E9crit :
> > > I already set my isp's smtp as smart relay in freensd.mc and did make,
> > > but now my FQDN hostname is not considered cosher (helo)... its
> > > desktop.homenet, a local name.
> > >
> > > How do I solve this?
> > >
> > > (also...contrast this inconvenience with every non-subscribed spammer
> > > being able to spam us if she has a colo set up properly...)
> >
> > 	You might want to use ssmtp. Since you're using your ISP's smtp
> > 	server to send mail, there should be no problem if you don't
> > 	have a FQDN hostname.
>
> A very simple and complicated HOWTO :)
> http://www.cultdeadsheep.org/~clement/FreeBSD/send-pr+ssmtp.txt
>
> clem

This is an excellent solution, much better than what I did before. I was=20
actually editing the sendmail .cf file to change my FQDN and address. Messy.

I can simply use my regular email address @ricin.com (at a hosting provider=
)=20
too now. Both send-pr and porttools need a slight modification to also take=
=20
the preferred email adress from .ssmtprc. To have the right <from> and be=20
also recognised as maintainer by porttools something like this will do:=20

=2D-- cmd_submit.orig     Tue Mar 29 00:10:35 2005
+++ cmd_submit  Tue Mar 29 00:36:17 2005
@@ -70,6 +70,11 @@
 COMMITTER=3D"no"
 RUN_PORTLINT=3D"yes"

+# Set EMAIL to what's in ~/.ssmtprc if it exists
+if [ -f ${HOME}/.ssmtprc ]; then
+       EMAIL=3D"`cat ${HOME}/.ssmtprc`"
+fi
+
 # Parse command line arguments
 ARGS=3D`/usr/bin/getopt hm:d:s:p:cL $*`
 if [ $? !=3D 0 ]


Thanks a lot, sane solution with little effort, just the way I like it :)

Dan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503290056.06112.danny>