[BlueOnyx:27295] Re: Error sending mail with PHP script.

Colin Jack colin at mainline.co.uk
Fri Oct 25 14:18:07 -05 2024


Thanks Michael,


> The recipient address is hardwired to carl at domain.co.uk <mailto:carl at domain.co.uk> and there are 
> two relevant entries in the maillog:

> > Oct 25 14:18:14 broadwater postfix/smtpd[5387]: NOQUEUE: reject: RCPT 
> from localhost.localdomain[127.0.0.1]: 451 4.3.0 <carl at domain.co.uk <mailto:carl at domain.co.uk>>: 
> Temporary lookup failure; from=<root at broadwater.server.co.uk <mailto:root at broadwater.server.co.uk>> 
> to=<carl at domain.co.uk <mailto:carl at domain.co.uk>> proto=ESMTP helo=<broadwater.server.co.uk>

> The MTA failed to lookup domain.co.uk and therefore the email bounced.

But if the MTA failed to look up domain.co.uk why can I dig the mx records from the CLI?

> The other issue is this:

> > warning: hash:/etc/mailman/virtual-mailman is unavailable. open
> > database /etc/mailman/virtual-mailman.db: No such file or directory

> On a 5210R you should have these two files:

> [root at 5210r ~]# ls -k1 /etc/mailman/virtual-mailma*
> /etc/mailman/virtual-mailman
> /etc/mailman/virtual-mailman.db

> One or both seem to be missing on your server. Check what you have there.

/etc/mailman/virtual-mailman should be a plain textfile and the 
/etc/mailman/virtual-mailman.db is the database version of it.

I have the text file but not the db

> If you don't have a /etc/mailman/virtual-mailman on your 5210R, do this:

> touch /etc/mailman/virtual-mailman
> chown root:mailman /etc/mailman/virtual-mailman
> chmod 664 /etc/mailman/virtual-mailman

> newaliases

No such file or directory :-/

> makemap hash /etc/mailman/virtual-mailman < /etc/mailman/virtual-mailman

Got the db  now so that's good

Not sure about the MTA not lookup failure but I will have a dig.

All the best

Colin




More information about the Blueonyx mailing list