Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle all mail send to domain #16

Closed
bookmark opened this issue Jun 2, 2011 · 6 comments
Closed

Handle all mail send to domain #16

bookmark opened this issue Jun 2, 2011 · 6 comments

Comments

@bookmark
Copy link

bookmark commented Jun 2, 2011

How to use Haraka

I need mail server can receiver all mail to @domain.com, parse address and send back to owner email

example :

i send [email protected] , mail server receiver and parse 123, save to db...

Sorry i'm bad English

@baudehlo
Copy link
Collaborator

baudehlo commented Jun 2, 2011

That's pretty simple. By default Haraka does no user checking. So just use the rcpt_to.in_host_list with your "domain.com" in the config/host_list file. Saving to a db is up to you to figure out as I don't know how you want to save it, but if you want to save to couchdb you might be interested in this: https://github.com/maxogden/haraka-couchdb

Hope that helps. Let me know if you have any more questions.

@bookmark
Copy link
Author

bookmark commented Jun 2, 2011

I have two question:

1- how to write plugin get address from mail receiver?

2- how to send mail with haraka?

@baudehlo
Copy link
Collaborator

baudehlo commented Jun 2, 2011

Have you looked at the Tutorial? I just updated it so it's even easier now.

https://github.com/baudehlo/Haraka/blob/master/docs/Tutorial.md

@bookmark
Copy link
Author

bookmark commented Jun 3, 2011

When i do with tut, i have a error

[ERROR] [mail_from.is_resolvable] DNS Error: Error: ENODATA, DNS server returned answer with no data
[INFO] B27F02D5-49CF-477C-8BE5-D6A0D641D877.1 plugin returned deny(soft?): Temporary resolver error
[DEBUG] B27F02D5-49CF-477C-8BE5-D6A0D641D877.1 running deny hooks
[DEBUG] B27F02D5-49CF-477C-8BE5-D6A0D641D877 running quit hooks
[DEBUG] B27F02D5-49CF-477C-8BE5-D6A0D641D877 running disconnect hooks
[DEBUG] B27F02D5-49CF-477C-8BE5-D6A0D641D877 closing client

How to fix it

@bookmark bookmark closed this as completed Jun 3, 2011
@bookmark bookmark reopened this Jun 3, 2011
@bookmark
Copy link
Author

bookmark commented Jun 3, 2011

How to read mail content ????

@baudehlo
Copy link
Collaborator

baudehlo commented Jun 4, 2011

You are supplying a FROM address at a domain without an MX record (perhaps "example.com"?). Either disable the mail_from.is_resolvable plugin (edit config/plugins) or use a different (and thus valid) domain.

To read the mail contents have a look at the data.signatures plugin (in github) as an example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants