Help with setting up a mail server
Jerry
freebsd.user at seibercom.net
Thu Jul 22 17:28:59 UTC 2010
On Thu, 22 Jul 2010 17:28:00 +0300
Odhiambo Washington <odhiambo at gmail.com> articulated:
> On Thu, Jul 22, 2010 at 4:52 PM, Jerry <freebsd.user at seibercom.net> wrote:
>
> > On Thu, 22 Jul 2010 13:32:36 +0100
> > krad <kraduk at googlemail.com> articulated:
> >
> >
> > > yep I know exim is sendmail cli compatible, but the output from sendmail
> > is
> > > not the same on exim (interactive prompt). You can probably get similar
> > > output from sendmail, but with most things sendmail it is archaic and
> > > obfuscated.
> >
> > With Postfix installed, using "sendmail -bv" works quite well.
> >
>
> With Postfix installed and configured or just installed? I just installed.
>
> [wash at mail ~]$ ls -al /usr/local/sbin/sendmail
> -rwxr-xr-x 1 root wheel 202361 Jul 22 17:23 /usr/local/sbin/sendmail
> [wash at mail ~]$ /usr/local/sbin/sendmail -bv odhiambo at gmail.com
> postdrop: warning: unable to look up public/pickup: No such file or
> directory
> Mail Delivery Status Report will be mailed to <wash>.
>
> [wash at mail ~]$ /usr/local/sbin/sendmail -d -bv odhiambo at gmail.com
> sendmail: illegal option -- d
> sendmail: illegal option -- d
> sendmail: fatal: usage: sendmail [options]
>
> [wash at mail ~]$ exim -bt odhiambo at gmail.com
> odhiambo at gmail.com
> router = dnslookup, transport = remote_smtp
> host gmail-smtp-in.l.google.com [209.85.227.27] MX=5
> host alt1.gmail-smtp-in.l.google.com [74.125.39.27] MX=10
> host alt2.gmail-smtp-in.l.google.com [74.125.53.27] MX=20
> host alt3.gmail-smtp-in.l.google.com [74.125.95.27] MX=30
> host alt4.gmail-smtp-in.l.google.com [74.125.65.27] MX=40
>
> I cannot post the output that comes with -d here, it's so much that trying
> to feed the trawl will get it chocked:-)
>
>
For starters, you are using the wrong sendmail. You need to use the
Postfix 'sendmail' version.
$ which sendmail
/usr/sbin/sendmail
I have Postfix installed and running. Sorry, I thought that was obvious.
Typing: "man sendmail" should show this at the top of the page:
"NAME sendmail - Postfix to Sendmail compatibility interface"
If not, then something is configured incorrectly. By the way, in order
to run Postfix, you have to completely shutdown the base system's
'sendmail'
cat /etc/rc.conf
# Shutdown sendmail
sendmail_enable="NO"
sendmail_msp_queue_enable="NO"
sendmail_outbound_enable="NO"
sendmail_submit_enable="NO"
#Start Postfix
postfix_enable="YES"
--
Jerry ✌
FreeBSD.user at seibercom.net
Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__________________________________________________________________
More information about the freebsd-questions
mailing list