söndagen den 24 augusti 2003 21.42 skrev Bård Tommy Nilsen:
> Hello
>
> How can i allow every user that is using IMAP to send mails trough the
> mailserver ??

I assume you mean roaming access?

Read the documentations, annoy Mr. Sam, and/or use the attached patch?

--- authlib/preauthvchkpw.c	2003-03-12 03:51:27.000000000 +0100
+++ authlib/preauthvchkpw.c.oden	2003-06-09 12:50:17.000000000 +0200
@@ -27,7 +27,7 @@
 static const char rcsid[]="$Id: preauthvchkpw.c,v 1.18 2003/03/12 02:45:55 mrsam Exp $";
 
 
-#undef HAVE_OPEN_SMTP_RELAY
+/* #undef HAVE_OPEN_SMTP_RELAY */
 /* Disabled, pending fix */
 
 int auth_vchkpw_pre(const char *userid, const char *service,
@@ -63,9 +63,9 @@
                         make_user_dir(User, Domain, uid, gid);
                         vpw=vauth_getpw(User, Domain);
                 }
-#ifdef ENABLE_AUTH_LOGGING
+/* #ifdef ENABLE_AUTH_LOGGING */
                 vset_lastauth(User, Domain, service);
-#endif
+/* #endif */
 
         }
         free(usercopy);
@@ -84,19 +84,19 @@
                 if ( vpw->pw_gid & NO_POP ) {
                         return(-1);
                 } else {
-#ifdef HAVE_OPEN_SMTP_RELAY
+/* #ifdef HAVE_OPEN_SMTP_RELAY */
                         /* open the relay to pop users */
                         open_smtp_relay();
-#endif
+/* #endif */
                 }
         } else if ( strcmp("imap", service) == 0 ) {
                 if ( vpw->pw_gid & NO_IMAP ) {
                         return(-1);
                 } else {
-#ifdef HAVE_OPEN_SMTP_RELAY
+/* #ifdef HAVE_OPEN_SMTP_RELAY */
                         /* open the relay to imap users */
                         open_smtp_relay();
-#endif
+/* #endif */
                 }
         }
 

Reply via email to