From owner-freebsd-questions@FreeBSD.ORG Mon May 21 19:39:27 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0A37116A469 for ; Mon, 21 May 2007 19:39:27 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.248]) by mx1.freebsd.org (Postfix) with ESMTP id A04EB13C465 for ; Mon, 21 May 2007 19:39:26 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: by an-out-0708.google.com with SMTP id d23so399712and for ; Mon, 21 May 2007 12:39:26 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=PbrLDKuknXG+HHaq4iCbaaa7pM9oHhiN+zowYguyl6ecqZAM3Vdu5Wam5t+IleY/R/jcEVMiwDn985fw6LuKpCTYM65NlJtolxEifIwQhIdi8OrZfhOjtntiB5EnSzSOgglQH3jrVS1iNga24bTIuPSzzuFsUtW8+0bIT49xRUc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=hX/CQRLkUpr/NViu/iMDtyIczpZWTIO2YiswKHe1iTKADe/95/9ivLRjTffKJLX3Ib9LUzt7VagAlPzTHOsKI2IbHzCH608ta7r73EdZhceKnOEnfatFhGVCNKE9hGI7FWHOAEzUKtaOdkwkbJzAfWQWmC0AHmyJ5qsaQx/o7VE= Received: by 10.100.200.12 with SMTP id x12mr3229091anf.1179776365967; Mon, 21 May 2007 12:39:25 -0700 (PDT) Received: by 10.100.79.17 with HTTP; Mon, 21 May 2007 12:39:25 -0700 (PDT) Message-ID: <26ddd1750705211239r2d43fdc8g88d9d1c7639eb277@mail.gmail.com> Date: Mon, 21 May 2007 15:39:25 -0400 From: "Maxim Khitrov" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Re: How to configure simple mail forwarder? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 May 2007 19:39:27 -0000 On 5/21/07, Jerry McAllister wrote: > On Mon, May 21, 2007 at 01:52:34PM -0400, Maxim Khitrov wrote: > > > On 5/21/07, Per olof Ljungmark wrote: > > >Maxim Khitrov wrote: > > >> Hi everyone, > > >> > > >> I have what I hope is a rather simple question. I'm not very familiar > > >> with this area of system administration, so hopefully someone here can > > >> point me in the right direction. I just got myself a FreeBSD VPS to > > >> host a few of my websites. I need the processes on the server (PHP, > > >> for example) to be able to send e-mail via /usr/sbin/sendmail. The > > >> thing is that I don't actually want to run a mail server. My vps is > > >> severely limited on disk space, and any mail I get I'll forward to my > > >> gmail account anyway. I can obviously configure sendmail or postfix to > > >> do this for me, but this seems a bit excessive for what I'm trying to > > >> do. The mail load will be very light, and I'd prefer to conserve disk > > >> space. Is there a port, perhaps, that will simply forward all mail > > >> transmitted to /usr/sbin/sendmail to the destination SMTP server? The > > >> only other thing it has to be able to do is use the aliases file to > > >> determine the real e-mail of root, for example. > > >> > > >> Like I said, I'm not too familiar with setting up mail servers, so if > > >> this makes no sense to you please suggest an alternative. Just to > > >> recap, I don't need local mail storage and I don't need the server to > > >> accept mail from anything other than the local processes running on > > >> the server. Just need it to read the destination e-mail address (or > > >> get it via aliases), connect to the MX server for that domain, and > > >> transmit the message. If there isn't any simple daemon that will do > > >> this, can you recommend either how to configure sendmail or something > > >> like postfix to do this? The idea is to minimize resource usage (disk > > >> space, memory, cpu time). > > > > > >Sounds to me you just have to enter the proper aliases (in > > >/etc/mail/aliases), run "newaliases", and you're done, i.e. point > > >everything to your own e-mail address? > > > > > > > Well I need sendmail running for that correct? Right now I've got it > > disabled with sendmail_enable="NONE" in my rc.conf. I was hoping to > > use something a bit less resource intensive, and with a better > > security history. I am not really at all familiar with sendmail. I > > tried figuring out how to configure and tune it properly in the past, > > and realized that I have neither the time or patience for that task. I > > know that it will probably work the way it comes by default with > > FreeBSD, but I really don't like running daemons that I don't > > understand or don't know how to configure and monitor. > > > > If this is the most efficient solution to my problem, then I guess > > I'll head over to the handbook and try to figure sendmail out. If you > > have other suggestions, by all means, let me know. Otherwise, are > > there at least parts of sendmail that I can disable? > > There is nothing wrong with using sendmail. > If you want to 'receive' email at the address and forward it to > some other address, then there is nothing you have to do to configure it. > Just leave it at its defaults. Then put the aliases in as indicated. > > If you want to be able to send out Email - say from processes, but > receive no email, not even to forward, then set it to 'no' in rc.conf. > > ////jerry Fair enough, I'll give that a try. Just for my own info, when I set sendmail_enable to NO and start it up I get sendmail_submit and sendmail_clientmqueue starting. Am I correct in assuming that clientmqueue is what accepts the messages from the processes on the system (places them in /var/spool/mqueue), and submit is what actually delivers them to other servers? Thanks for your help guys!