Re: Say Hello and 1st time Questions
Frank Tegtmeyer <[email protected]>
| Newsgroups | gmane.mail.serialmail |
|---|---|
| Message-ID | <[email protected]> |
<[email protected]> writes: > 1. 1.2.3.4 MUST be the ISP mail server for doing relay, right? Yes. > can I use 127.0.0.1 to send mail directly? Because you set up serialmail I doubt that you have a relaying mailserver at this address. So the answer is no. > Or a relay mail server must be used? Yes, your ISP's mail server. > 2. `hostname`? what does it means? is it needed for the command? Read the manual of maildirsmtp: it's the helohost used during the SMTP conversation. Set anything you like - this part of the SMTP protocol is so useless that most SMTP servers don't do anything with that value. > 3. where should I put this script/command? so that It will be run > automatically when the connetion is up. pppd's typically have a ip-up script that is called when the connection goes up. > Will it be safely stopped > automatically when there is no connection. It will stop when all messages are transferred or the relay server is not reachable anymore. So the answer is yes. > 4. what will happen if the command is run when there is no dial-up > connection? will it do any harm? if not, then maybe I can put the > command in a cron job, right? Depends on if you enable dial on demand. If you have such a cron job then it may become expensive. > 5. is there anything to do with serialmail if I would like to have > dial on demand function? i.e. whenever the pppdir has mails queued, it > will automatically dail-up and send. Most relay servers require some kind of authentication before, often POP before SMTP. In this case you should check your POP account before and test for success. Here is my script - I deliver all outgoing mail to user "versand" (delivery in English). The script is called manually only so there are no checks for success (and it uses QMTP). getmail is used for authentication before qmtp transmission: #!/bin/sh PATH=$PATH:/usr/local/bin export PATH getmail /usr/local/bin/setlock -n /home/mailsend/qmtplock \ /usr/local/bin/maildirqmtp /home/mailsend/Maildir \ mailsend- smtp.fte.to Regards, Frank