These are all no moodle specific question - you need to visit a mailserver forum. To receive mail via thunderbird you'll need either a pop3 or an imap deamon running.
apt-get install qpopper
Will install a pop3 service fpr example. To receive mail from outside your server will need a valid mx-entry inside the DNS. Ask your provider or your administration for this.
regards,
Maik
If you need to configure postfix to send and receive mail for 'moodle.jesuitcp.org', you just need to specify 'myorigin', 'mydomain' and 'mydestionation' in main.cf.
Edit /etc/postfix/main.cf and edit your current 'myorigin' setting to read:
myorigin = moodle.jesuitcp.org
Next edit your 'mydomain' to read:
mydomain = jesuitcp.org
and finally edit your 'mydestination' to read:
mydestination = $myorigin, localhost, localhost.$mydomain
Reload your postfix service with:
/etc/init.d/postfix reload
and have a look at the end of /var/log/mail.log (where postfix sends its output in Debian) and check you don't have any messages saying there are syntax errors or similar things (just a 'configuration reloaded' message).
You can check your modified settings are all ok with:
postconf -n myorigin mydomain mydestination
That should do it. You can try fancier things later
Saludos. Iñaki.
There are a couple of things you can do to debug this issue. First, you can have a look at the mail queue. It could be that postfix is accepting Moodle's mail, but not be able to send it (for whatever reason) and the mail is sitting on the mail queue. Login as root and issue this command:
/usr/sbin/postqueue -p
That will list all the mail waiting on the queue and the reason why it's waiting there. The first column lists the queue ID. If it has an '*' at the end, then postfix is trying to deliver the message right now. If not, the message is waiting for the next retry and you'll see a message telling you why it wasn't send the last time postfix tried to send it:
C68661FAA3* 13235 Wed Aug 2 12:00:04 rubies-bounces_at_listas.escomposlinux.org
msalaza5_at_xtec.net
A69D31FADB 19661 Sun Jul 30 21:10:58 service_at_paypal.com
(connect to bilo.escomposlinux.org[80.33.178.48]: Connection refused)
bilo_at_bilo.escomposlinux.org
If your Moodle messages are not in the queue, then we need to have a look at the postfix logs. What I usually do is display the logs in real time while I try to send a message. Execute the following command:
tail -f /var/log/mail.log
that will output the las 10 lines of the postfix logs and wait for more content and display that content as soon as it arrives.
No go into Moodle and do something that sends a messages (like creating a new user using email authentication, for example) and see what gets logged in postfix. If you don't know what the log messages mean, you can paste them here and I'll have a look at them.
If you are running postfix and Moodle on the same server, leave all the 'smtp*' variables empty. That will use the local smtp server without any authentication, which will be fine.
Saludos. Iñaki.
FYI: the /etc/postfix/transport
jesuitcp.org smtp:ourspamserver.com
I suspect that I need to distinguish between local_transport, default_transport, etc so that it knows how to send non-jesuitcp.org email through smtp and the jesuitcp.org one's through postfix's (moodle.jesuitcp.org or localhost) smtp. I am just not sure exactly what the transport file should look like.
One wants to start the life anew and finds out one cannot escape from the old sh**.
If this Exchange adheres to common courtsey, like all the mail servers, it should work in a "distributed" fashion.
Putting it another way, if a mail server tries to send a mail to aguy@somedomain, the server checks the MX record of DNS, finds out the receiving server and delivers the message.
So your server must be able to send mail to _any_ domain, including your own. It is the duty of the mail server of your institution to do whatever they wish with your message.
I wonder whether you are over-caring ;-(
In a default setup you leave all the fields (smtphosts, smtpuser, smtppass) empty. Then Moodle will try to deliver the mails it generates to the standard port, port 25, of the same machine.
Obviously a mail server (MTA in unix jargon) should be running in the server and listening to this port. In your case postfix. To avoid abuse it should be configured to accept only "internal" mail, ie. mail generated from the machine.
So Moodle has a easy life of launching its mail to the net (via local postfix).
So much theory. Two practical tips:
# tail -f /var/log/mail.log
or
# tail -f /var/log/maillog
will show you what your mailserver is doing.
(# means that you are root, don't type the hash!)
Once you change any configuration parameter of your mail server,
/etc/postfix/main.cf for example, you have to restart it. Depending on the distribution it will be something like
# /etc/init.d/rc3.d/postfix restart