|
MasterFax - Protocollo faxsmtp |
|
| Comunicazione | Note |
|---|
| [connessione]
| |
| 220 masterfax.net faxsmtp 1.3 by hyppoCom at date
| Welcome, server pronto
Se l'invio non è disponibile:
421-masterfax.net faxsmtp 1.3...
421-Motivo di down
421 Server down
|
| EHLO MTFaxClient V1.0
| MTFaxClient = Identificativo sw client
V1.0 = Versione del sw client
In accordo con MasterFax, è possibile il controllo automatico
della versione del software client, con una risposta speciale in caso
di versione NON aggiornata: vedi prossimo scambio
|
250-MTFaxClient V1.0
250 AUTH PLAIN LOGIN
| Welcome e tipo di autenticazione accettata
In caso di Sw non aggiornato:
250-@URL http://update.it/...
250-MTFaxClient V1.0
250 AUTH PLAIN LOGIN
|
| AUTH LOGIN
| Richiesta al server di autenticarsi
|
| 334 VXNlcm5hbWU6
| Richiesta al client di Username (base64)
|
| VXNlcm5hbWU6
| Invio Username base64 encoded
|
| 334 UGFzc3dvcmQ6
| Richiesta al client di Password (base64)
|
| VXNlcm5hbWU6
| Invio Password base64 encoded
|
| 235 Autenticazione OK [483 credits]
| Altrimenti:
535 Errore di autenticazione
|
| MAIL FROM: <user@domain.com>
| Indirizzo email a cui mandare la ricevuta
|
| 250 <user@domain.com> From
|
|
| RCPT TO: <051266608>
| Numero fax oppure @nomelista
|
| 250 <051266608> OK
| Oppure:
501 Motivazione dell'errore
|
| RCPT TO: <0532555555>
| Altri destinatari opzionali
|
| 250 <0532555555> OK
|
|
| DATA
| Richiesta di inizio invio FaxBody
|
| 354 Inviare FaxBody <.> to end
|
|
Content-Type: multipart/alternative; boundary="----=MTFax_bndry"
Subject: Nome del documento
X-MTFax-Sched: now (oppure dd/mm/yyyy HH:MM:00)
------=MTFax_bndry
Content-Type: application/octet-stream; name=fax.ps
Content-Transfer-Encoding: base64
Corpo del fax (compresso) in formato PS in base64 encoding
------=MTFax_bndry--
.
|
Subject: = Nome del documento, viene salvato sul db
X-GFax-Sched: = Schedulazione: se non immediata (now), data di schedulazione nel formato dd/mm/yyyy HH:MM:00
È fortemente consigliato comprimere il documento con zlib, il server riconosce automaticamente tale compressione.
|
| 250 250 GF-031114155343-2245-1 OK 43487 bytes 2 destinatari
| Conferma ricezione FaxBody e identificazione nome job, oppure:
550 Descrizione errore
|
| QUIT
|
|
| 221 masterfax.net Closing connection
|
|