Willkommen ~Gast!
Registrieren || Einloggen || Hilfe/FAQ || Staff
Probleme mit der Registrierung im Forum? Melde dich unter registerEin Bild.
Autor Beitrag
000
13.02.2008, 02:32
default



Da man selbst ja teil einer historisch gewachsenen Struktur ist, verfügt man generell über mehr als einen Mail Account.
gmail bietet von allen gängigen freemailprovidern als einziger imap an, gmx, web.de etc alle nur pop3, imap kostet extra.

Das ist natürlich schlecht, wenn man, wie viele, mehr als einen Rechner nutzt, und auch gerne auf mehr als nur einem Rechner seine Mails lesen&schreiben möchte.

Die webinterfaces der freemailprovider sind, bis auf gmail, völlig untragbar, und verschickt man eine mail über das Webinterface, fehlt diese Mail in der "Sent" History auf dem pop(3|penden) Rechner.

Ich hab das Problem mal angegangen, und denke meine Lösung ist wenigstens nicht schlecht.
Da ich die basics mit google erfahren habe, dieser Beitrag.

Der Plan:
Alle mails von allen Accounts auf einer zentralen Box sammeln, diese über Imap anbieten.

Ziele:
- keine lokalen Nutzer auf dem mailserver
- multiple smarthosts (einer pro mail account)
- remote und local smtp auth
- zentrale stelle für _alle_ usercredentials für alle verwendeten programme,
- ein account hinzuzufügen muss global sein,
- exim muss ihn kennen,
- fetchmail
- dovecot muss ihn direkt anbieten
- transparente passwörter, die provider credentials werden auch für den eigenen imap account verwendet

Keine direkten Ziele:
- spamassassin und der ganze andere mailfilterschmock, kann man aber sicher nachsteuern

Ein "smarthost" ist der mailserver eines Providers, zb mail.gmx.de oder mail.gmx.ch mail.aol.com etc.
"smtp auth" verlangt von einem kunden der über einen "smart host" mail verschicken möchte, dass er sich vorher mit den pop3 credentials authentifiziert, das beugt spam vor.
lokale smtp auth ist in diesem fall, dass man sich an unserem mailserver anmelden muss vorm senden, remote smtp auth, dass man sich am mailserver des providers anmeldet.

Warum exim?, eigentlich grundlos, ich hab bisher keine schlechten erfahrungen mit gemacht, hatte auch kaum welche, und im nachhinein denke ich es war eine hervorragende wahl.
Warum fetchmail? gibt es alternativen die nennenswert sind?
Warum dovecot? benötigt kein sasl -> sehr einfach zu konfigurieren

Als zentrale sammelstelle für alle accountinformationen habe ich postgres auserkoren, postgres wird von exim4 und dovecot nativ unterstützt.
Abgesehen davon ist postgres eine hervorragende Datenbank, und man sollte immer eine postgres db haben.
Es empfiehlt sich in jedem fall eine sql datenbank zu nutzen, plaintextfiles sind der absolute krampf, und man kann für jedes programm eine einzelne anlegen und pflegen (password changes zb)

Vorweg, wenn man thunderbird als mail client benutzt, kann man seine gesamte sent/recv history hinterher einfach auf den imap server kopieren, dauert evtl etwas, aber man hat kein datenverlust.

Installationsanweisung richtet sich an debian und derivate, hier wars ein ubuntu.

--

Du musst Deine Bandbreite verbreitern, damit du breiter wirst von der Bandbreite her und ein breiteres Publikum ansprechen kannst.

zum Seitenanfang zum Seitenende Profil || Suche
001
13.02.2008, 02:36
default



postgres

ich hab die db "mail" erstellt, den user "mail" und hier werde ich auch als password "mail" verwenden

Quellcode:CREATE TABLE users (
    "user" serial NOT NULL,
    mail_address character varying(64),
    login_name character varying(64),
    login_password character varying(64),
    smarthost_hostname character varying(64),
    smarthost_service character varying(5)
);


ALTER TABLE public.users OWNER TO mail;
Accountdaten dann direkt einpflegen:
Quellcode:INSERT INTO users (mail_address, login_name, login_password, smarthost_hostname, smarthost_service) VALUES ('foobar@gmx.de', '471123', 'thepasswort', 'mail.gmx.de', 'smtp');

--

Du musst Deine Bandbreite verbreitern, damit du breiter wirst von der Bandbreite her und ein breiteres Publikum ansprechen kannst.

zum Seitenanfang zum Seitenende Profil || Suche
002
13.02.2008, 02:39
default



fetchmail

fetchmail ist leider eine schlampe, es kann nicht direkt auf die datenbank zugreifen, aber wir können die fetchmail config generieren lassen:

Quellcode:psql -U mail mail -c "SELECT 'poll ' || smarthost_hostname || ' proto pop3 user "' || login_name || '" there with password "' || login_password || '" is "' || mail_address || '" here' FROM users"
das schreiben wir dann brav in die datei /etc/fetchmailrc

zudem sollte man evtl ein crontab einrichten der fetchmail alle 5 minuten aufruft

--

Du musst Deine Bandbreite verbreitern, damit du breiter wirst von der Bandbreite her und ein breiteres Publikum ansprechen kannst.

zum Seitenanfang zum Seitenende Profil || Suche
003
13.02.2008, 02:42
default



dovecot

die uid und gid sind vom Debian-exim user geklaut.
hier fehlt leider erstmal imaps
das maildir /var/mail/USER@DOMAIN wird von exim angelegt und versorgt.

/etc/dovecot/dovecot.conf
Quellcode:protocols = imap
#ssl_cert_file = /etc/exim/exim.crt
#ssl_key_file = /etc/exim/exim.key
disable_plaintext_auth = no
login_user = dovecot
verbose_proctitle = yes
default_mail_env = maildir:/var/mail/%n@%d

# Enable mail process debugging. This can help you figure out why Dovecot
#mail_debug = yes
# meant for debugging, otherwise you don't get core dumps. It could be a small
# Even more verbose logging for debugging purposes. Shows for example SQL
#auth_debug = yes
# problem can be debugged. Requires auth_debug=yes to be set.
#auth_debug_passwords = yes

first_valid_uid = 100


auth default {
        mechanisms = plain
        passdb sql {
                args = /etc/dovecot/dovecot-sql.conf
        }
        userdb sql {
                args = /etc/dovecot/dovecot-sql.conf
        }
        user = Debian-exim
}
/etc/dovecot/dovecot-sql.conf
Quellcode:# Commonly used available substitutions (see
# http://wiki.dovecot.org/Variables for full list):
#   %u = entire userid
#   %n = user part of user@domain
#   %d = domain part of user@domain

# NOTE: '\' line splitting is used only for readability, currently Dovecot doesn't support it

# You can also set up non-password authentication by modifying PostgreSQL's pg_hba.conf
driver = pgsql
connect = host=localhost dbname=mail user=mail password=mail

# PostgreSQL:
password_query = SELECT mail_address AS user, md5(login_password) AS password FROM users WHERE login_name =  '%n'

user_query = SELECT '/var/mail/' || mail_address AS home, 108 AS uid, 112 AS gid FROM users WHERE mail_address = '%n@%d'

--

Du musst Deine Bandbreite verbreitern, damit du breiter wirst von der Bandbreite her und ein breiteres Publikum ansprechen kannst.

zum Seitenanfang zum Seitenende Profil || Suche
004
13.02.2008, 02:57
default



exim

hrm, ja, wie postet man eine exim config ...

Ich habe http://www.linuxer.onlinehome.de/apps/exim4.htm als ausgangsbasis genommen, den ganzen schmock auf sql umgestellt, local smtp-auth hinzugefügt, und router und transports für dovecoat.
In dem Teil steht auch was man beim dpkg-reconfigure exim4-config auswählen sollte.

Der einfachheit halber, hier der ganze wix als diff.

Quellcode:diff -Naur exim4_debian/conf.d/auth/00_exim4-config_header exim4/conf.d/auth/00_exim4-config_header
--- exim4_debian/conf.d/auth/00_exim4-config_header     2008-02-11 20:18:52.104854374 +0100
+++ exim4/conf.d/auth/00_exim4-config_header    2008-02-12 14:00:05.805459017 +0100
@@ -5,4 +5,17 @@

begin authenticators

+plain:
+    driver = plaintext
+    public_name = PLAIN
+    server_condition = "${lookup pgsql{SELECT login_name FROM users WHERE login_name = '${quote_pgsql:$2}' AND login_password = '${quote_pgsql:$3}'}{$value}fail}"
+    server_set_id = $2

+cram:
+    driver = cram_md5
+    public_name = CRAM-MD5
+#    server_secret = "${if eq{$1}{$1} {${lookup{$1}lsearch{/etc/exim/passwd}{$value}{*:*}}}fail}"
+    server_secret = "${lookup pgsql{select login_password from users where login_name = '${quote_pgsql:$1}'}{$value}fail}"
+    server_set_id = $1
+    
+    
\ Kein Zeilenumbruch am Dateiende.
diff -Naur exim4_debian/conf.d/auth/40_exim4-config_dynamic exim4/conf.d/auth/40_exim4-config_dynamic
--- exim4_debian/conf.d/auth/40_exim4-config_dynamic    1970-01-01 01:00:00.000000000 +0100
+++ exim4/conf.d/auth/40_exim4-config_dynamic   2008-02-12 13:39:06.948629316 +0100
@@ -0,0 +1,46 @@
+
+### auth/40_exim4-config_dynamic
+###########################################################################
+###
+### In Datei auth/30_exim4-config_examples alles mit '#' auskommentieren.
+###
+### Konfiguration neu einlesen: 'invoke-rc.d exim4 reload'
+###
+###########################################################################
+      
+dynamic_cram_md5:
+    driver = cram_md5
+    public_name = CRAM-MD5
+#    client_name = "${extract{4}{:}{${lookup{$sender_address}lsearch*\
+#                  {CONFDIR/passwd.user}{$value}fail}}}"
+    client_name = "${lookup pgsql{SELECT login_name FROM users WHERE mail_address = '${quote_pgsql:$sender_address}'}{$value}fail}"
+#    client_secret = "${extract{5}{:}{${lookup{$sender_address}lsearch*\
+#                  {CONFDIR/passwd.user}{$value}fail}}}"
+    client_secret = "${lookup pgsql{SELECT login_password FROM users WHERE mail_address = '${quote_pgsql:$sender_address}'}{$value}fail}"
+                                                                        
+dynamic_plain:
+    driver = plaintext
+    public_name = PLAIN
+#    client_send = "^${extract{4}{::}\
+#                    {${lookup{$sender_address}lsearch*\
+#                    {CONFDIR/passwd.user}{$value}fail}}}\
+#                    ^${extract{5}{::}\
+#                    {${lookup{$sender_address}lsearch*\
+#                    {CONFDIR/passwd.user}{$value}fail}}}"
+    client_send = "^${lookup pgsql{SELECT login_name FROM users WHERE mail_address = '${quote_pgsql:$sender_address}'}{$value}fail}\
+                    ^${lookup pgsql{SELECT login_password FROM users WHERE mail_address = '${quote_pgsql:$sender_address}'}{$value}fail}"
+                                                          
+dynamic_login:
+    driver = plaintext
+    public_name = LOGIN
+#    client_send = ": ${extract{4}{::}\
+#                  {${lookup{$sender_address}lsearch*\
+#                  {CONFDIR/passwd.user}{$value}fail}}}\
+#                  : ${extract{5}{::}\
+#                  {${lookup{$sender_address}lsearch*\
+#                  {CONFDIR/passwd.user}{$value}fail}}}"
+    client_send = ": ${lookup pgsql{SELECT login_name FROM users WHERE mail_address = '${quote_pgsql:$sender_address}'}{$value}fail}\
+                   : ${lookup pgsql{SELECT login_password FROM users WHERE mail_address = '${quote_pgsql:$sender_address}'}{$value}fail}"
+
+### Last Update: Wed, 14 Feb 2007 17:31:05 +0100
+### eof ###################################################################
diff -Naur exim4_debian/conf.d/main/04_exim4-config_options exim4/conf.d/main/04_exim4-config_options
--- exim4_debian/conf.d/main/04_exim4-config_options    1970-01-01 01:00:00.000000000 +0100
+++ exim4/conf.d/main/04_exim4-config_options   2008-02-12 12:21:32.612682765 +0100
@@ -0,0 +1,31 @@
+
+### main/04_exim4-config_options
+###########################################################################
+###
+### Systemfilter festlegen fuer spaetere Fehlerbehandlung
+###
+### Konfiguration neu einlesen: 'invoke-rc.d exim4 reload'
+###
+###########################################################################
+
+system_filter = /etc/exim4/exim_system_filter.conf
+system_filter_user = Debian-exim
+
+###
+### Trust-User etwas vereinfachen...
+### addgroup trustmail
+### adduser $USER trustmail
+###
+
+#trusted_groups = trustmail
+
+# Number of delivery processes that Exim starts automatically when receiving
+# messages via SMTP. If the value of the option is greater than
+# zero, and the number of messages received in a single SMTP session
+# exceeds this number, subsequent messages are placed on the queue, but
+# no delivery processes are started.
+#
+smtp_accept_queue_per_connection = 10000
+
+### Last Update: Wed, 14 Feb 2007 17:31:05 +0100
+### eof ###################################################################

--

Du musst Deine Bandbreite verbreitern, damit du breiter wirst von der Bandbreite her und ein breiteres Publikum ansprechen kannst.

zum Seitenanfang zum Seitenende Profil || Suche
005
13.02.2008, 02:58
default



Quellcode:diff -Naur exim4_debian/conf.d/router/200_exim4-config_primary exim4/conf.d/router/200_exim4-config_primary
--- exim4_debian/conf.d/router/200_exim4-config_primary 2008-02-11 20:18:52.104854374 +0100
+++ exim4/conf.d/router/200_exim4-config_primary        2008-02-12 12:23:47.325230059 +0100
@@ -56,7 +56,7 @@
.endif


-.ifdef DCconfig_smarthost DCconfig_satellite
+#.ifdef DCconfig_smarthost DCconfig_satellite
# configtype=smarthost or configtype=satellite
#
# Send all non-local mail to a single other machine (smarthost).
@@ -73,17 +73,17 @@
# domains, you'll need to copy the dnslookup_relay_to_domains router
# here so that mail to relay_domains is handled separately.

-smarthost:
-  debug_print = "R: smarthost for $local_part@$domain"
-  driver = manualroute
-  domains = ! +local_domains
-  transport = remote_smtp_smarthost
-  route_list = * DCsmarthost byname
-  host_find_failed = defer
-  same_domain_copy_routing = yes
-  no_more
+#smarthost:
+#  debug_print = "R: smarthost for $local_part@$domain"
+#  driver = manualroute
+#  domains = ! +local_domains
+#  transport = remote_smtp_smarthost
+#  route_list = * DCsmarthost byname
+#  host_find_failed = defer
+#  same_domain_copy_routing = yes
+#  no_more

-.endif
+#.endif


# The "no_more" above means that all later routers are for

--

Du musst Deine Bandbreite verbreitern, damit du breiter wirst von der Bandbreite her und ein breiteres Publikum ansprechen kannst.

zum Seitenanfang zum Seitenende Profil || Suche
006
13.02.2008, 02:59
default



Quellcode:diff -Naur exim4_debian/conf.d/router/240_exim4-config_dovecot_router exim4/conf.d/router/240_exim4-config_dovecot_router
--- exim4_debian/conf.d/router/240_exim4-config_dovecot_router  1970-01-01 01:00:00.000000000 +0100
+++ exim4/conf.d/router/240_exim4-config_dovecot_router 2008-02-12 20:38:55.363415510 +0100
@@ -0,0 +1,20 @@
+#dovecot_sent_router:
+#  driver = accept
+#  condition = ${lookup pgsql{ SELECT * FROM users WHERE mail_address = '${quote_pgsql:$sender_address}' }{$value}}
+#  #local_part_suffix = +*
+#  #local_part_suffix_optional
+##  require_files = +/var/mail/${local_part}@${domain}}/
+#  transport = dovecot_sent_transport
+#  unseen
+
+dovecot_recv_router:
+#  message = "XXXX T: dovecot_recv_router for $local_part@$domain to $sender_address"
+  driver = accept
+#  message = "XXXX T: dovecot_recv_router for $local_part@$domain to $sender_address"
+#  condition = ${lookup pgsql { SELECT * FROM users where email_address = '${quote_pgsql:$local_part@$domain}'}{$value}}
+  condition = ${lookup pgsql{ SELECT * FROM users WHERE mail_address = '${quote_pgsql:${lc:$local_part@$domain}}' }{$value}}
+  #local_part_suffix = +*
+  #local_part_suffix_optional
+#  require_files = +/var/mail/$sender_address/
+  transport = dovecot_recv_transport
+#  unseen
diff -Naur exim4_debian/conf.d/router/250_exim4-config_dynamic exim4/conf.d/router/250_exim4-config_dynamic
--- exim4_debian/conf.d/router/250_exim4-config_dynamic 1970-01-01 01:00:00.000000000 +0100
+++ exim4/conf.d/router/250_exim4-config_dynamic        2008-02-12 15:15:38.929398714 +0100
@@ -0,0 +1,32 @@
+
+### router/250_exim4-config_dynamic
+###########################################################################  
+###
+### In der Datei router/200_exim4-config_primary den letzten Abschnitt ab:
+###
+### .ifdef DCconfig_smarthost DCconfig_satellite
+### bis
+### .endif
+###
+### mit '#' auskommentieren!
+###
+### Konfiguration neu einlesen: 'invoke-rc.d exim4 reload'
+###
+###########################################################################
+
+dynamic_smarthost:
+    domains = ! +local_domains
+#    condition = "${extract{3}{:}{${lookup{$sender_address}lsearch*\
+#              {CONFDIR/passwd.user}{$value}fail}}}"
+    condition = ${lookup pgsql{ SELECT smarthost_hostname FROM users WHERE mail_address = '${quote_pgsql:$sender_address}' }{$value}}
+    driver = manualroute
+    transport = dynamic_remote_smtp
+#    route_list = "* ${extract{3}{:}{${lookup{$sender_address}lsearch*\
+#              {CONFDIR/passwd.user}{$value}fail}}}"
+    route_list = * "${lookup pgsql{ SELECT smarthost_hostname FROM users WHERE mail_address = '${quote_pgsql:$sender_address}' }{$value} fail}"
+    host_find_failed = defer
+    same_domain_copy_routing = yes
+    no_more
+
+### Last Update: Wed, 14 Feb 2007 17:31:05 +0100
+### eof ###################################################################
diff -Naur exim4_debian/conf.d/transport/30_exim4-config_remote_smtp exim4/conf.d/transport/30_exim4-config_remote_smtp
--- exim4_debian/conf.d/transport/30_exim4-config_remote_smtp   2008-02-11 20:18:52.108854392 +0100
+++ exim4/conf.d/transport/30_exim4-config_remote_smtp  1970-01-01 01:00:00.000000000 +0100
@@ -1,7 +0,0 @@
-
-### transport/30_exim4-config_remote_smtp
-#################################
-# This transport is used for delivering messages over SMTP connections.
-remote_smtp:
-  debug_print = "T: remote_smtp for $local_part@$domain"
-  driver = smtp
diff -Naur exim4_debian/conf.d/transport/31_exim4-config_dynamic exim4/conf.d/transport/31_exim4-config_dynamic
--- exim4_debian/conf.d/transport/31_exim4-config_dynamic       1970-01-01 01:00:00.000000000 +0100
+++ exim4/conf.d/transport/31_exim4-config_dynamic      2008-02-13 01:24:33.683901630 +0100
@@ -0,0 +1,28 @@
+
+### transport/31_exim4-config_dynamic
+###########################################################################
+###
+### In Datei transport/31_exim4-config_remote_smtp alles mit '#'
+### auskommentieren.
+###
+### Konfiguration neu einlesen: 'invoke-rc.d exim4 reload'
+###
+###########################################################################
+  
+dynamic_remote_smtp:
+    debug_print = "T: dynamic_remote_smtp for $local_part@$domain"
+    driver = smtp
+
+### Hier die Smarthost eintragen, getrennt mit Doppelpunkt
+#    hosts_try_auth = mail.gmx.net:auth.mail.onlinehome.de
+
+### ODER diese Konfiguration nie mehr anfassen...
+### Der Smarthost wird aus der CONFDIR/passwd.user geholt.
+
+#    hosts_try_auth = "${extract{3}{:}{${lookup{$sender_address}lsearch*\
+#                      {CONFDIR/passwd.user}{$value}fail}}}"
+#     hosts_try_auth = "${lookup pgsql{SELECT DISTINCT smarthost_hostname FROM users}{$value} fail}"
+    hosts_try_auth = *
+                      
+### Last Update: Wed, 14 Feb 2007 17:31:05 +0100
+### eof ###################################################################

--

Du musst Deine Bandbreite verbreitern, damit du breiter wirst von der Bandbreite her und ein breiteres Publikum ansprechen kannst.

zum Seitenanfang zum Seitenende Profil || Suche
007
13.02.2008, 03:00
default



Quellcode:diff -Naur exim4_debian/conf.d/transport/40_exim4-config_dovecot_transport exim4/conf.d/transport/40_exim4-config_dovecot_transport
--- exim4_debian/conf.d/transport/40_exim4-config_dovecot_transport     1970-01-01 01:00:00.000000000 +0100
+++ exim4/conf.d/transport/40_exim4-config_dovecot_transport    2008-02-12 20:28:57.072850675 +0100
@@ -0,0 +1,16 @@
+#dovecot_sent_transport:
+#  driver = appendfile
+#  directory = /var/mail/${lc:$sender_address}/Sent
+#  maildir_format = true
+#  mode_fail_narrower = false
+#  envelope_to_add = true
+#  return_path_add = true
+
+dovecot_recv_transport:
+  driver = appendfile
+  directory = /var/mail/${lc:$local_part@$domain}/
+  maildir_format = true
+  mode_fail_narrower = false
+  envelope_to_add = true
+  return_path_add = true
+
diff -Naur exim4_debian/exim_system_filter.conf exim4/exim_system_filter.conf
--- exim4_debian/exim_system_filter.conf        1970-01-01 01:00:00.000000000 +0100
+++ exim4/exim_system_filter.conf       2008-02-12 12:26:00.509773408 +0100
@@ -0,0 +1,73 @@
+# Exim filter
+# do not edit or remove the first line!
+###########################################################################
+if not first_delivery then finish endif
+
+###########################################################################
+### Dieser Filter ist wichtig! Damit werden Fehlermeldungen der einzelnen
+### Smarthosts (Bounce Messages) auf die lokalen User weitergeleitet!
+### Diese Fehlermeldungen werden per E-Mail an den Absender (Envelope
+### Sender) der unzustellbaren E-Mail gesendet und hat selbst einen leeren
+### Envelope Sender (<>), um Mail-Loops zu verhindern.
+### Als From: Adresse  wird haeufig die Adresse MAILER-DAEMON@mailserver
+### oder POSTMASTER@mailserver verwendet.
+###
+### Warnung: wird dieser Filter nicht verwendet, dann landen die Bounces
+### wieder beim lokalem Exim (Status: frozen!). Der lokale Exim versucht
+### die Mails weiter zu versenden. Er wird die Mail aber nicht los, weil
+### sich MAILER-DAEMON@localhost nicht bei den Smarthosts authentifizieren
+### kann. Ohne diesen Filter bekommt der lokale User keine Information
+### darueber, dass ein Mailversand fehlgeschlagen ist!
+###########################################################################
+          
+###########################################################################
+### Fehlerbehandlung mit /etc/exim4/passwd.user
+### example for /etc/exim4/etc/exim4/passwd.user
+### mail@adr.se:mail@adr.se:localuser:mail.server.net:loginname:password
+###                 1           2            3            4        5
+###########################################################################
+
+if error_message
+  then
+    logfile /var/log/exim4/filterlog
+    #################################################################
+    ###
+    ### Bei Verwendung einer Logdatei bitte die Logfile-Rotation
+    ### unter /etc/logrotate.d/exim4-base entsprechend anpassen.
+    ###
+    #################################################################
+    ###
+    ### DIE GANZE FEHLERBEHANDLUNG IST NOCH EXPERIMENTELL!
+    ### Aber sie funktioniert schon sehr gut. :-)
+    ###
+    #################################################################
+    ###
+    ### Alle meine Versuche mit ordentlichen Matches oder Contrains
+    ### sind mit dem alten Format in der passwd.user gescheitert.
+    ### Deshalb steht jetzt auch die E-Mail doppelt in der Datei...
+    ###
+    ### Falls jemand eine bessere Idee hat - her damit!
+    ###                                            *FIXME* ;-)
+    #################################################################
+    ###
+    ### Bitte KEINE Zeilenumbrueche und nur absolute Pfade verwenden!
+    ###
+    #################################################################
+      
+    if
+      $h_to: contains ${extract{1}{:}{${lookup{$h_to:}lsearch*{/etc/exim4/passwd.user}{$value}}}}
+    then
+      logwrite "$tod_log Error-Messages send to $h_to:."
+      headers add "X-RETURN: to local sender $h_to:."
+      deliver ${extract{2}{:}{${lookup{$h_to:}lsearch*{/etc/exim4/passwd.user}{$value}}}}
+    else
+      logwrite "$tod_log Error-Messages send to postmaster."
+      headers add "X-RETURN: to postmaster."
+      deliver postmaster
+    endif
+
+    finish
+endif
+
+### Last Update: Wed, 14 Feb 2007 17:31:05 +0100
+### eof ###################################################################
diff -Naur exim4_debian/update-exim4.conf.conf exim4/update-exim4.conf.conf
--- exim4_debian/update-exim4.conf.conf 2008-02-11 20:18:52.112854409 +0100
+++ exim4/update-exim4.conf.conf        2008-02-12 18:28:06.786247653 +0100
@@ -17,14 +17,14 @@
# This is a Debian specific file

dc_eximconfig_configtype='smarthost'
-dc_other_hostnames='nemohongaes.nelke'
-dc_local_interfaces='127.0.0.1'
-dc_readhost=''
+dc_other_hostnames=''
+dc_local_interfaces='0.0.0.0'
+dc_readhost='nemohongaes.nelke'
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
-dc_smarthost='mail.gmx.de'
+dc_smarthost=''
CFILEMODE='644'
-dc_use_split_config='false'
-dc_hide_mailname='false'
+dc_use_split_config='true'
+dc_hide_mailname='true'
dc_mailname_in_oh='true'

--

Du musst Deine Bandbreite verbreitern, damit du breiter wirst von der Bandbreite her und ein breiteres Publikum ansprechen kannst.


Dieser Beitrag wurde am 13.02.2008 um 03:00 von default bearbeitet.
zum Seitenanfang zum Seitenende Profil || Suche
008
13.02.2008, 03:02
default



die datei auth/30_exim4-config_examples sollte man löschen.

die packages
apt-get install exim4-daemon-heavy
apt-get install fetchmail
apt-get install dovecot-imapd
postgres hat man ja eh installiert.

--

Du musst Deine Bandbreite verbreitern, damit du breiter wirst von der Bandbreite her und ein breiteres Publikum ansprechen kannst.

zum Seitenanfang zum Seitenende Profil || Suche
009
13.02.2008, 08:57
maurice



ich weiss damit zwar nichts anzufangen, aber es sieht sehr beeindruckend aus.

--

Interstellar - visual love

I'm not random, i just have many thoug... Oh look, a Squirrel!

zum Seitenanfang zum Seitenende Profil || Suche
010
13.02.2008, 13:54
Mazze



Zitat:
gmail bietet von allen gängigen freemailprovidern als einziger imap an, gmx, web.de etc alle nur pop3, imap kostet extra.
Also ich hol meine Mails von web.de per imap und es scheint zu funktionieren.
Extra zahlen muss ich nicht.

Matze

--

BattleTech-MOD:
http://bthl.unitedgaming.net/

zum Seitenanfang zum Seitenende Profil || Suche
011
13.02.2008, 14:16
Bluthund



web.de bietet IMAP nur für web.de-Clubmitglieder, Mazze.
Nettes Tut, default.

--

The C language combines all the power of assembly language with all the ease-of-use of assembly language.
"humorig is n blödwort :>" by -CarniGGeLjumpR-

zum Seitenanfang zum Seitenende Profil || Suche
012
13.02.2008, 19:55
Mazze



Wär mir neu. Steht öfters mal in diversen Foren. Mag sein, dass das bei neuen Accounts so ist. Bin mir allerdings sicher, dass ich nix zahl und trotzdem imap benutze.

Abgesehen davon ist's natürlich stylischer wenn man defaults weg folgt.

--

BattleTech-MOD:
http://bthl.unitedgaming.net/

zum Seitenanfang zum Seitenende Profil || Suche
013
14.02.2008, 01:25
Master Pegasus



Find ich prima, sowas wollt ich mir auch schon ne Weile basteln, leider sind bisher immer irgendwelche Prüfungen dazwischen gekommen.

Insbesondere die Smarthostproblematik find ich sehr interessant. Wenn ich's diese Ferien schaffe mach ich im März nen Implementierungsversuch.

--

Was immer auch geschieht: Nie sollt Ihr so tief sinken, von dem Kakao, durch den man Euch zieht, auch noch zu trinken! -- Erich Kästner

zum Seitenanfang zum Seitenende Profil || Suche
014
15.02.2008, 19:43
default



ich hab das noch verfeinert,

- dedizierte pop3 section für fetchmail auf der db, damit man auch pop3 über ssl abholen kann oder wenn der smtp servername != dem pop3 servername ist

- address rewrite war ne scheissidee, reply-to will man bei mailinglisten nicht rewriten

paar sachen sind auch noch baustelle,
- gmail hat smtp auf port 587, wird atm verkackt, exim verbindet auf port 25 und hängt dann beim starttls ...,
man kann clientseitig zwar direkt den gmail smtp nehmen, aber steuer ich noch nach.

- delivery failure reports bleiben atm im exim hängen, weil die config da noch nicht auf db angepasst ist

wenn das soweit ist, kommt hier nen update

----------
ich hab für den scheiss ca 1-2 tage gebraucht

--

Du musst Deine Bandbreite verbreitern, damit du breiter wirst von der Bandbreite her und ein breiteres Publikum ansprechen kannst.


Dieser Beitrag wurde am 15.02.2008 um 19:44 von default bearbeitet.
zum Seitenanfang zum Seitenende Profil || Suche