masqmail
view src/lookup.h @ 378:5781ba87df95
Removed ident. This had been discussed on the mailing list in Oct 2011.
Ident is hardly useful in typical setups for masqmail. Probably Oliver
had used it in his setup; that would make sense. Now, I know of nobody
who needs it.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Sat, 14 Jan 2012 21:36:58 +0100 |
parents | 41958685480d |
children |
line source
1 /*
2 ** MasqMail
3 ** Copyright (C) Oliver Kurth,
4 **
5 ** This program is free software; you can redistribute it and/or modify
6 ** it under the terms of the GNU General Public License as published by
7 ** the Free Software Foundation; either version 2 of the License, or
8 ** (at your option) any later version.
9 **
10 ** This program is distributed in the hope that it will be useful,
11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ** GNU General Public License for more details.
14 **
15 ** You should have received a copy of the GNU General Public License
16 ** along with this program; if not, write to the Free Software
17 ** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
20 #define MAX_DNSNAME MAXDNAME
22 typedef struct {
23 guint32 ip;
24 int pref;
25 guchar *name;
26 } mxip_addr;
29 typedef GList *(*resolve_func) (GList *, gchar *);
31 GList *resolve_dns_a(GList *list, gchar *domain);
32 GList *resolve_dns_mx(GList *list, gchar *domain);
33 GList *resolve_byname(GList *list, gchar *domain);
34 int dns_look_ip(gchar *domain, guint32 *ip);