Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jul 2013 17:18:59 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-ports@freebsd.org
Subject:   Re: port submission issues - sendmail setup
Message-ID:  <51E6C3F3.2020909@infracaninophile.co.uk>
In-Reply-To: <51E6ACC0.901@herveybayaustralia.com.au>
References:  <51E6ACC0.901@herveybayaustralia.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
------enig2MLNBIJAWFGPAGWUSBTLN
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 17/07/2013 15:40, R Skinner wrote:
> This has been a real fiasco to send one around the bend.
>=20
> I'm trying to quickly submit a port and I used the send-pr this time an=
d
> attached my shar as opposed to using the web form, except my sendmail i=
s
> being rejected because it is a firewalled host and can't be found.
>=20
> So I spent several hours trying to get my head around sendmail and the
> security involved and setup the 'smart host' option. Eventually this
> worked, and sent to my mail gateway which is postfix.
>=20
> I then checked the pr list - still not there. So I checked the mailq on=

> the gateway and it still says its looking for the firewalled host! Arrr=
gh!
>=20
> I'm not up to speed on sendmail at all, so can someone tell what potion=

> I've got to pour into this thing so the send-pr will work correctly
> without opening any security flaws or access outside of 127.0.0.1?

Try this:

  # cd /etc/mail
  # make

This should create, inter alia, a file: ${hostname}.mc
Edit this file.  Find the line that reads:

dnl define(`SMART_HOST', `your.isp.mail.server')

Remove the four characters 'dnl ' from the beginning of the line, and
edit the text `your.isp.mail.server' to contain the hostname of your
smart mailer.  Note that the left- and right- hand quotes are different
there: that's a feature of m4(1), the language used in that file.

Save your edits.

(Assuming you have sendmail_outbound_enable=3D"YES" in /etc/rc.conf)

Now run:

  # make all
  # make install
  # make restart

(Assuming you have sendmail_outbound_enable=3D"YES" in /etc/rc.conf)

Any messages in the queue should be send pretty quickly after the
restart.  Watch /var/log/maillog to see what sendmail is doing. Or you
can force a queue run by:

  # /usr/sbin/sendmail -q -v

and you can examine the state of the queue by

  # mailq -v

This should work if your smart host will accept the message for
forwarding to the FreeBSD PR system without needing you to authenticate.
 If you do need to authenticate, well, it is certainly possible to
configure sendmail to do that, but that's almost certainly a lot more
work than you want to do just to submit a PR.  In this case, I think the
WWW interface is your best bet.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.

PGP: http://www.infracaninophile.co.uk/pgpkey
JID: matthew@infracaninophile.co.uk


------enig2MLNBIJAWFGPAGWUSBTLN
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlHmw/sACgkQ8Mjk52CukIwvBACdGijIvsZpCAec4sTmn8b0ELzI
3NAAoIXRj7fCqKniM80qNYT/L7W8s8Nu
=GLU7
-----END PGP SIGNATURE-----

------enig2MLNBIJAWFGPAGWUSBTLN--



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