[Bro] Configuring MAIL FROM:

Paul Halliday paul.halliday at gmail.com
Tue Dec 4 11:24:18 PST 2012


On Mon, Dec 3, 2012 at 2:39 PM, Seth Hall <seth at icir.org> wrote:
>
> On Dec 3, 2012, at 12:45 PM, Paul Halliday <paul.halliday at gmail.com> wrote:
>
>> Stumped!
>>
>> Where does bro get the host value from?
>
> Technically from the "hostname" command by default.  You can change it by using a FQDN in broctl.cfg like this…
>
> mailfrom = Big Brother <bro at yourserver.com>
>

Should it be mailfrom or MailFrom? either way it didn't appear to
influence anything.

I did fix it so that `hostname` now returns host.domain.ca. this
didn't help either.

I turned on debugging for ssmtp:

Dec  4 14:01:21 hostname sSMTP[75788]: Set Root="postmaster"
Dec  4 14:01:21 hostname sSMTP[75788]: Set MailHub="mail.domain.ca"
Dec  4 14:01:21 hostname sSMTP[75788]: Set RemotePort="25"
Dec  4 14:01:21 hostname sSMTP[75788]: Set RewriteDomain="domain.ca"
Dec  4 14:01:21 hostname sSMTP[75788]: Set HostName="hostname.nscc.ca"
Dec  4 14:01:21 hostname sSMTP[75788]: Set FromLineOverride="True"
Dec  4 14:01:21 hostname sSMTP[75788]: Set MailHub="mail.domain.ca"
Dec  4 14:01:21 hostname sSMTP[75788]: via SMTP Port Number="25"
Dec  4 14:01:21 hostname sSMTP[75788]: 220 mail.domain.ca ESMTP
(blahblahblahblah)
Dec  4 14:01:21 hostname sSMTP[75788]: HELO hostname.domain.ca
Dec  4 14:01:21 hostname sSMTP[75788]: 250 mail.domain.ca Hello
hostname.domain.ca [1.2.3.4], pleased to meet you
Dec  4 14:01:21 hostname sSMTP[75788]: MAIL FROM:<bro at hostname>
Dec  4 14:01:21 hostname sSMTP[75788]: 504 Need Fully Qualified Address
Dec  4 14:01:21 hostname sSMTP[75788]: 504 Need Fully Qualified Address

Just doing: `mail me at domain.ca` from the command line works.

Thoughts?

Thanks.




More information about the Bro mailing list