On Fri, May 17, 2013 at 07:31:42PM -0700, Scott wrote: > The initial debug advice I got was helpful, so I thought I'd take the next > step and add relaying to gmail (back to that in a minute), but apparently I > just don't get it still. Rolling back to my previously working setup failed > also, this time with a new error: 421. I don't get much help looking for > explanations of 421 on the web.
>From the log you sent, it fails because the .forward file in your user dir is empty. This is actually a bug that is fixed in the upcoming release. Either rm it, or put the username in there, for now. > I wondered if somehow I gummed up my queue when I was diddling around with > the relay settings. > > # ls /var/spool/smtpd/ > a0 > > Ok, so that's my just-failed message, so I flush it, just to be sanitary: > > # smtpctl remove a0b31f71a4e509ff > (BTW, is there a way to flush ALL queued messages? smtpctl(8) doesn't > allude to it. If there isn't, what's the proper way to do so?) Get the envelope ids from the "mailq" output and pass them to "smtpctl remove". Something like: # mailq | cut -d \| -f 1 | xargs -L 1 smtpctl remove Eric.