Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: anope 1.8.8, QMAIL  (Read 7661 times)

0 Members and 1 Guest are viewing this topic.

ted

  • Anope User
  • Offline Offline
  • Posts: 6
anope 1.8.8, QMAIL
« on: August 12, 2013, 04:38:55 PM »

Hi,

I'm having problems passing to QMAIL... I'm running anope 1.8.8 on Cent 5.8 with Kloxo CP, Unreal3.2 on VPS.

Scenario:

Unreal3.2 installed under //userA  (mydomain.com)
Anope installed under //userB       


Relevant config:
-----------------------------------------------------------

NickCoreModules "ns_help ns_register ns_group ns_identify ns_access ns_set ns_saset ns_drop ns_recover ns_release ns_sendpass ns_ghost ns_alist ns_info ns_list ns_logout ns_status ns_update ns_getpass ns_getemail ns_forbid ns_suspend"

UseMail

SendMailPath "/var/qmail/bin/sendmail -t"

SendFrom userB@mail.mydomain.com

DontQuoteAddresses
------------------------------------------------------------

I'm not sure if the issue is Kloxo or Anope - but I am able to send mail ok from command line logged in as userB (where services are running from) to the above SendMailPath and I receive these ok.

/var/qmail/bin/sendmail -t test@hotmail.co.uk < /home/userB/services/test.txt

works fine from CL and an email is received from userB@mail.mydomain.com - so I should be able to pass to this SendMailPath fine.  I just don't understand why not. From what I've deduced this is where I should look/ask first.

/var/qmail/bin/sendmail -t "test@hotmail.co.uk" < /home/userB/services/test.txt

With quotes on send to address also working on command line.

Thanks in advance
« Last Edit: August 12, 2013, 05:21:10 PM by ted »
Logged

Adam

  • Team
  • *
  • Offline Offline
  • Posts: 463
Re: anope 1.8.8, QMAIL
« Reply #1 on: August 12, 2013, 06:26:27 PM »

cat  /home/userB/services/test.txt
Logged

ted

  • Anope User
  • Offline Offline
  • Posts: 6
Re: anope 1.8.8, QMAIL
« Reply #2 on: August 13, 2013, 02:52:50 AM »

[userB@vps services]$ cat -s /home/userB/services/test
this is a test
Logged

Adam

  • Team
  • *
  • Offline Offline
  • Posts: 463
Re: anope 1.8.8, QMAIL
« Reply #3 on: August 13, 2013, 02:56:01 AM »

to send mail we send:

From: services@address
To: nick <email> OR To: "nick" <email> (depending on quote address setting)
Subject: etc

message.

We literally popen("/var/qmail/bin/sendmail -t") and do not add any additional cli args.
Logged

ted

  • Anope User
  • Offline Offline
  • Posts: 6
Re: anope 1.8.8, QMAIL
« Reply #4 on: August 13, 2013, 06:06:27 AM »

Thanks for the replies -

It's bizarre... I've set up a new user outside of Kloxo and still nothing being passed.  Nothing stuck in the server mail queue either.  I'm now using sendmail - Problem still the same & CLi is fine -

-----------------------------------
[userB@vps]$ /usr/sbin/sendmail -t < /home/userB/services/test
[userB@vps]$ cat /home/userB/services/test
From: userB@domain.com
To: nick test@hotmail.co.uk

Subject: etc

message

this is a test email

---------------------------

Even tho this is passing to sendmail, kloxo config i think is still redirecting it to qmail-inject, as a typo returned a qmail-inject parse failure.

I've tried variations - with and without quotes, when calling both qmail and sendmail paths.



Logged

ted

  • Anope User
  • Offline Offline
  • Posts: 6
Re: anope 1.8.8, QMAIL
« Reply #5 on: August 13, 2013, 06:35:39 AM »

It seems to be doing this with those sent by CLi that are being received ok:

To: nick test@hotmail.co.uk

Is being parsed as:

nick@mail.myvpsdomain.com, test@hotmail.co.uk

Obviously the first email address doesn't exist, but that's who they are addressed to first, required address is second - could this be what is tripping up sendmail from services?
Logged

ted

  • Anope User
  • Offline Offline
  • Posts: 6
Re: anope 1.8.8, QMAIL
« Reply #6 on: August 14, 2013, 01:40:55 AM »

Bit further into qmail:

4.1.4. forward delivery

Forward deliveries causes the message to be resent to the specified address. Addresses specified in .qmail files can't contain comment fields or extra spaces.

These are wrong:

    &<user@example.com>
    & user@example.com
    &Joe User <user@example.com>

These are correct:

    &user@example.com
    user@example.com
    &user <---------------

The first two cause user@example.com to receive a copy of the message. The last sends a copy to the local user user.

-------------------------------------------------

1. Alice composes the message with her mail user agent (MUA), something like mutt or pine. She specifies the recipient in a To field, the subject of the message in a Subject field, and the text of the message itself. It looks something like:

    To: bob@beta
    Subject: lunch

    How about pizza?

2. When she's satisfied with the message, she tells the MUA to send it.

3. At this point, the MUA can add additional header fields like Date and Message-Id and modify the values Alice entered (e.g., replace bob@beta with "Bob <bob@beta.example.com>". Next, the MUA injects the message into the mail system.


http://www.lifewithqmail.org/lwq.html#sending-messages

------------------------------------------------------------------------------

If - To: nick <email> - is being passed, seems qmail will always append nick@mail.localhost.com

Assuming Anope as is wont work at all with QMAIL? Yet it will deliver the same with with cli.
« Last Edit: August 14, 2013, 02:04:47 AM by ted »
Logged

ted

  • Anope User
  • Offline Offline
  • Posts: 6
Re: anope 1.8.8, QMAIL
« Reply #7 on: August 14, 2013, 02:45:48 AM »

Log from a failed nickserv register:


Aug 14 04:15:02 dark600 qmail: 1376439302.537927 info msg 82542961: bytes 668 from <anonymous@mail.vps.domain.com> qp 17930 uid 1012
Aug 14 04:15:02 dark600 qmail: 1376439302.571287 starting delivery 743: msg 82542961 to remote userB@mail.vps.domain.com
Aug 14 04:15:02 dark600 qmail: 1376439302.571342 status: local 0/10 remote 1/60
Aug 14 04:15:02 dark600 qmail: 1376439302.619149 delivery 743: failure: Sorry._Although_I'm_listed_as_a_best-preference_MX_or_A_for_that_host,/it_isn't_in_my_control/locals_file,_so_I_don't_treat_it_as_local._(#5.4.6)/
Aug 14 04:15:02 dark600 qmail: 1376439302.619208 status: local 0/10 remote 0/60
Aug 14 04:15:02 dark600 qmail: 1376439302.709435 bounce msg 82542961 qp 17932
Aug 14 04:15:02 dark600 qmail: 1376439302.709494 end msg 82542961
Aug 14 04:15:02 dark600 qmail: 1376439302.860577 new msg 82542962
Aug 14 04:15:02 dark600 qmail: 1376439302.860731 info msg 82542962: bytes 1334 from <> qp 17933 uid 206
Aug 14 04:15:02 dark600 qmail: 1376439302.893654 starting delivery 744: msg 82542962 to remote anonymous@mail.vps.domain.com
Aug 14 04:15:02 dark600 qmail: 1376439302.893758 status: local 0/10 remote 1/60
Aug 14 04:15:02 dark600 qmail: 1376439302.902525 delivery 744: failure: Sorry._Although_I'm_listed_as_a_best-preference_MX_or_A_for_that_host,/it_isn't_in_my_control/locals_file,_so_I_don't_treat_it_as_local._(#5.4.6)/
Aug 14 04:15:02 dark600 qmail: 1376439302.906544 status: local 0/10 remote 0/60
Aug 14 04:15:03 dark600 qmail: 1376439303.163197 bounce msg 82542962 qp 17935
Aug 14 04:15:03 dark600 qmail: 1376439303.163323 end msg 82542962
Aug 14 04:15:03 dark600 qmail: 1376439303.163616 new msg 82542961
Aug 14 04:15:03 dark600 qmail: 1376439303.163738 info msg 82542961: bytes 1908 from <#@[]> qp 17936 uid 206
Aug 14 04:15:03 dark600 qmail: 1376439303.180602 starting delivery 745: msg 82542961 to remote postmaster@mail.vps.domain.com
Aug 14 04:15:03 dark600 qmail: 1376439303.180705 status: local 0/10 remote 1/60
Aug 14 04:15:03 dark600 qmail: 1376439303.209012 delivery 745: failure: Sorry._Although_I'm_listed_as_a_best-preference_MX_or_A_for_that_host,/it_isn't_in_my_control/locals_file,_so_I_don't_treat_it_as_local._(#5.4.6)/
Aug 14 04:15:03 dark600 qmail: 1376439303.209271 status: local 0/10 remote 0/60
Aug 14 04:15:03 dark600 qmail: 1376439303.209342 triple bounce: discarding bounce/82542961
Aug 14 04:15:03 dark600 qmail: 1376439303.209401 end msg 82542961


Log from cli succed:

Aug 14 05:17:15 dark600 qmail: 1376443035.001704 new msg 82542961
Aug 14 05:17:15 dark600 qmail: 1376443035.001865 info msg 82542961: bytes 285 from <userB@mail.vps.domain.com> qp 18263 uid 0
Aug 14 05:17:15 dark600 qmail: 1376443035.010358 starting delivery 787: msg 82542961 to remote test@hotmail.co.uk
Aug 14 05:17:15 dark600 qmail: 1376443035.010507 status: local 0/10 remote 1/60
Aug 14 05:17:15 dark600 qmail: 1376443035.010531 starting delivery 788: msg 82542961 to remote nick@mail.vps.domain.com
Aug 14 05:17:15 dark600 qmail: 1376443035.010544 status: local 0/10 remote 2/60
Aug 14 05:17:15 dark600 qmail: 1376443035.022475 delivery 788: failure: Sorry._Although_I'm_listed_as_a_best-preference_MX_or_A_for_that_host,/it_isn't_in_my_control/locals_file,_so_I_don't_treat_it_as_local._(#5.4.6)/
Aug 14 05:17:15 dark600 qmail: 1376443035.022645 status: local 0/10 remote 1/60
Aug 14 05:17:15 dark600 qmail: 1376443035.552146 delivery 787: success: User_and_password_not_set,_continuing_without_authentication./<test@hotmail.co.uk>_65.54.188.72_accepted_message./Remote_host_said:_250__<20130814011714.18261.qmail@mail.vps.domain.com>_Queued_mail_for_delivery/
Aug 14 05:17:15 dark600 qmail: 1376443035.552282 status: local 0/10 remote 0/60
Aug 14 05:17:15 dark600 qmail: 1376443035.561263 bounce msg 82542961 qp 18266
Aug 14 05:17:15 dark600 qmail: 1376443035.561423 end msg 82542961
Aug 14 05:17:15 dark600 qmail: 1376443035.561935 new msg 82542962
Aug 14 05:17:15 dark600 qmail: 1376443035.561963 info msg 82542962: bytes 938 from <> qp 18267 uid 206
Aug 14 05:17:15 dark600 qmail: 1376443035.568176 starting delivery 789: msg 82542962 to remote userB@mail.vps.domain.com
Aug 14 05:17:15 dark600 qmail: 1376443035.568233 status: local 0/10 remote 1/60
Aug 14 05:17:15 dark600 qmail: 1376443035.582893 delivery 789: failure: Sorry._Although_I'm_listed_as_a_best-preference_MX_or_A_for_that_host,/it_isn't_in_my_control/locals_file,_so_I_don't_treat_it_as_local._(#5.4.6)/
Aug 14 05:17:15 dark600 qmail: 1376443035.583056 status: local 0/10 remote 0/60
Aug 14 05:17:15 dark600 qmail: 1376443035.588218 bounce msg 82542962 qp 18269
Aug 14 05:17:15 dark600 qmail: 1376443035.588390 end msg 82542962
Aug 14 05:17:15 dark600 qmail: 1376443035.588651 new msg 82542961
Aug 14 05:17:15 dark600 qmail: 1376443035.588680 info msg 82542961: bytes 1506 from <#@[]> qp 18270 uid 206
Aug 14 05:17:15 dark600 qmail: 1376443035.596018 starting delivery 790: msg 82542961 to remote postmaster@mail.vps.domain.com
Aug 14 05:17:15 dark600 qmail: 1376443035.596085 status: local 0/10 remote 1/60
Aug 14 05:17:15 dark600 qmail: 1376443035.615925 delivery 790: failure: Sorry._Although_I'm_listed_as_a_best-preference_MX_or_A_for_that_host,/it_isn't_in_my_control/locals_file,_so_I_don't_treat_it_as_local._(#5.4.6)/
Aug 14 05:17:15 dark600 qmail: 1376443035.616392 status: local 0/10 remote 0/60
Aug 14 05:17:15 dark600 qmail: 1376443035.616423 triple bounce: discarding bounce/82542961
Aug 14 05:17:15 dark600 qmail: 1376443035.616591 end msg 82542961
« Last Edit: August 14, 2013, 02:52:05 AM by ted »
Logged
Pages: [1]   Go Up