Hey
i have enabled the DKIM checking on my server but im getting the following error when sending emails and it is not marking them correctly, does anyone know how to fix?


Mar 1 12:38:49 virtualmin postfix/smtpd[19501]: 7D8252E28110: client=ns10.webtastix.net[202.89.49.69]
Mar 1 12:38:49 virtualmin postfix/cleanup[19506]: 7D8252E28110: message-id=
Mar 1 12:38:49 virtualmin dkim-filter[31984]: 7D8252E28110 external host ns10.webtastix.net attempted to send as webtastix.co.nz
Mar 1 12:38:49 virtualmin named[30461]: client 127.0.0.1#53226: query (cache) '_asp._domainkey.co.nz/TXT/IN' denied
Mar 1 12:38:49 virtualmin dkim-filter[31984]: 7D8252E28110: no signature data
Mar 1 12:38:49 virtualmin postfix/qmgr[19507]: 7D8252E28110: from=, size=642, nrcpt=1 (queue active)
Mar 1 12:38:49 virtualmin postfix/smtp[19526]: 7D8252E28110: to=, relay=202.89.49.91[202.89.49.91]:25, delay=0.45, delays=0.19/0.01/0.19/0.05, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 651487D98D0)
Mar 1 12:38:49 virtualmin postfix/qmgr[19507]: 7D8252E28110: removed

Status: 
Active

Comments

What is the from address on these emails? It looks like it may be something Virtualmin or the DKIM signing server doesn't expect .. like username@co.nz

And is that domain hosted on your Virtualmin system? And if so, was the email relayed through your system when being sent?

yup its hosted on the same server...and its going thru that server and ive just noticed im seeing the below errors aswel


Mar 2 11:48:31 virtualmin postfix/pickup[3399]: A84BC2E28035: uid=1018 from=
Mar 2 11:48:31 virtualmin postfix/cleanup[17623]: A84BC2E28035: message-id=<20110301224831.A84BC2E28035@ns10.webtastix.net>
Mar 2 11:48:31 virtualmin dkim-filter[31984]: A84BC2E28035 no key selected for signing
Mar 2 11:48:31 virtualmin postfix/cleanup[17623]: A84BC2E28035: milter-reject: END-OF-MESSAGE from localhost[127.0.0.1]: 4.7.1 Service unavailable - try again later; from= to=

Any chance I could login to your system myself to see what is going wrong here?

yeh i wouldnt mind that..
howeverafter checking google a bit aparently you have to define the following so it knows which hostnames are allowed to send from and then it works... any chance you can add this to the gui?


InternalHosts /etc/dkim-internal-hosts

I could add that, but it shouldn't actually be necessary .. and I'm not sure how well that would work in a situation where the mail server is relaying messages for customers who may be connecting from home.

If you'd like me to login and take a look, my email is jcameron@virtualmin.com . I'd need root SSH access though.

from what ive been reading its because the adrress its connecting to (ns10.webtastix.net) isnt the hostname of the machine (virtualmin.webtastix.net) as smtp doesnt listen on the ip of virtualmin.webtastix.net but im not sure, i had it setup on my old server before virtualmin had it and i had the same issues, also people wernt able to relay from home unless i added the the internalhosts with their name aswel,there should just be a way to allow signing from all that have access to relay

I don't think that is the cause ...

We will be releasing Virtualmin 3.84 in a few days that will include major DKIM fixes. I suggest installing that version, disabling and re-enabling DKIM, and seeing if the error still happens.

ok cool, hopefully is soon,

all cron generated emails seem to make the below and then the emails stay queued as it cant do anything so they never go thur... so its causing quite a bit issue..

Mar 7 23:30:31 virtualmin postfix/qmgr[1390]: 6C84B2E281CE: removed
Mar 7 23:30:33 virtualmin dovecot: pop3-login: Aborted login (0 authentication attempts): rip=202.89.49.69, lip=202.89.49.69, secured
Mar 7 23:30:59 virtualmin postfix/pickup[12237]: warning: CB82D2E281CE: message has been queued for 4 days
Mar 7 23:30:59 virtualmin postfix/pickup[12237]: CB82D2E281CE: uid=33 from=
Mar 7 23:30:59 virtualmin postfix/cleanup[1427]: CB82D2E281CE: message-id=<20110307103059.CB82D2E281CE@ns10.webtastix.net>
Mar 7 23:30:59 virtualmin dkim-filter[24212]: CB82D2E281CE no key selected for signing
Mar 7 23:30:59 virtualmin postfix/cleanup[1427]: CB82D2E281CE: milter-reject: END-OF-MESSAGE from localhost[127.0.0.1]: 4.7.1 Service unavailable - try again later; from= to=