> I don't want the mails to be delivered immediately.
Get yourself a good sendmail book (OReilly publishes a good book
on sendmail).
For now, make a backup copy of your /etc/sendmail.cf, then edit
the cf file. Go down to the mailer section (look for regexp ^M). You will
find several mailers defined in that section. Look at the smtp and esmtp
mailer sections, they would read something like this.
Msmtp, P=[IPC], F=mDFMuX, S=11/31, R=21, E=\r\n, L=990,
T=DNS/RFC822/SMTP,
A=IPC $h
Mesmtp, P=[IPC], F=mDFMuXa, S=11/31, R=21, E=\r\n, L=990,
T=DNS/RFC822/SMTP,
A=IPC $h
Msmtp8, P=[IPC], F=mDFMuX8, S=11/31, R=21, E=\r\n, L=990,
T=DNS/RFC822/SMTP,
A=IPC $h
Mrelay, P=[IPC], F=mDFMuXa8, S=11/31, R=61, E=\r\n, L=2040,
T=DNS/RFC822/SMTP,
A=IPC $h
Now look at the "F=...." on each line. Add a lower case "e" to the
list of alphabets (i.e. in the Mrelay, change F=mDFMuXa8 to F=emDFMuXa8).
Save the sendmail.cf, and restart sendmail. From now on, all mail
that can't be delivered locally will be queued up.
Its up to you to do whatever necessary (cron jobs,
/etc/ppp/ip-up.local or whatever) to trigger the mail queue delivery at
the appropriate time.
> how to collect POP mails using linux?
Use fetchmail, if you want to do it continuously and/or in
background. Use fetchmailconf to configure fetchmail.
Kedar.
-----------------------------------------------------------------------
The LIH mailing list archives are available at:
http://lists.linux-india.org/cgi-bin/wilma/linux-india-help