2009/8/24 Δημήτριος Καραπιπέρης dim...@thessaloniki.gr:
I came to this solution, a bash script to validate a local recipient
employing the SMTP protocol.
Depending on your config, wouldnt you also be able to use 'postmap -q'
or 'postalias -q' to directly query a particular lookup table? That
Users source could be ldap or mysql, not a hash file.
In essence, I need to employ the local_recipient_map property, which
holds all the valid recipients
of the particular Postfix instance.
Dimitrios
O/H Phill Macey έγραψε:
2009/8/ l24 Δημήτριος Καραπιπέρης dim...@thessaloniki.gr:
I
2009/8/26 Δημήτριος Καραπιπέρης dim...@thessaloniki.gr:
Users source could be ldap or mysql, not a hash file.
In essence, I need to employ the local_recipient_map property, which holds
all the valid recipients
of the particular Postfix instance.
You can use postmap -q to make such queries,
I came to this solution, a bash script to validate a local recipient
employing the SMTP protocol.
#!/bin/bash
nc localhost 25 EOF | grep '250 2.1.5 Ok' | sed 's/250 2.1.5 Ok/OK/'
HELO localhost
MAIL FROM: dim...@thessaloniki.gr
RCPT TO: $1
QUIT
EOF
Dimitrios
O/H Wietse Venema
Hi !
Is there any Programming Interface (api) , so that a Postfix instance
could be accessed programmaticaly, say, a C program?
for example, connect to a Postfix instance and validate if an e-mail
address is a valid recipient for the specific instance...
thanks
Dimitrios Karapiperis
On Saturday 22 August 2009 15:12:45 Δημήτριος Καραπιπέρης wrote:
Is there any Programming Interface (api) , so that a Postfix
instance could be accessed programmaticaly, say, a C program?
Maybe just speak SMTP to it? I'm sure there are SMTP libraries
already written and available.
for
? ???:
Hi !
Is there any Programming Interface (api) , so that a Postfix instance
could be accessed programmaticaly, say, a C program?
Currently, all the SUPPORTED interfaces require that non-Postfix
code communicates with Postfix via some protocol: examples are
the SMTP