Quicklinks

EndUser

Test/Virtualisaton


Installieren

Kernel - Tuning

Network

Display / Pads

Bock Devices

Printer

USB-Devices

BenutzerSW

Server

Install Notes

General/Hints

anoyances.org

Collection of installation & troublshooting info related to my linux (debian/mint/ubuntu) installations

Mailserver auf wprj und deren Domains

Apache Vhost: Squirelmail einbinden (analog alltagswaerme.ch)

alltagsw a1ltagsw (webmail- Hauptaccount)

squirrel: fuer Sasvati:

Reason Given: Mailbox does not exist (pop3 geht)
aliase hacer.aksoy wie?

/etc/alias
/etc/mail/aliases

relay: alltagswaerme.ch u.s.w (als Relay zulassen)

/etc/exim4/update-exim4.conf.conf
dc_other_hostnames='alltagswaerme.ch;sasvati.ch'

dpkg-reconfigure exim4-config
(sollte nichts verändern, wenn alle Einstellungen belassen und macht restart.)

linux-user:

adduser [NAME -d /opt/lampp/htdocs/NAME -s /bin/false] - Dialog -> useradd

useradd -d /home/riva/ -G staff -p passwd sasvati (PW wird ev. plaintext abgelegt)
sudo passwd sasvati (pw korrigieren)
usermod -s /bin/false sasvati (keine Shell )

Mailserver

MTA - mail transfer agent (exim, sendmail)
MDA - mail delivery agent (procmail/Formail)

MTA-Exim

Als Substitut für Sendmail
Installation+Test
Virtuelle Domains
etc/aliases
Exim4 FAQ

User for Exim, und gruppe für Exim-Administratoren
$ useradd -M -u 90 exim
You should also arrange for your personal (non-root) account to be in the exim group so that you can be an administrator for Exim.
$ usermod -G exim username
$ grep exim /etc/group

exim4:

dpkg-reconfigure exim4-config (Config-Dialog, verwendet update-exim4.conf.conf)

smarthost: externer SMTP-Server

"Internet-Server"

  1. /etc/exim/exim.conf (respektive gesplittetes Configfile)

local_domains = wprj.net : mail.wprj.net : localhost:vps185.sui-inter.net

/etc/xinetd.d/sendmail smtp: server_args -Am streichen

echo "my test" | mail -s "test message" pogay (interne Zustellung)

logs
/var/spool/exim/log/paniclog (darf ev. für Start nicht vorhanden)
/var/spool/exim/msglog/*

'''Test
Installation+Test

root$ killall -HUP exim
root$ /usr/exim/bin/exim -d2 -bd -q30m (Debugmode)

routing tests
$ exim -bt user
$ exim -bt root (root, mail u.s.w wird einem definierten User zugesandt)
$ exim -bt junkjunkjunk

$ exim -bt andre.born@born.ch

R: dnslookup for andre.born@born.ch
andre.born@born.ch
  router = dnslookup, transport = remote_smtp
  host mx.born.ch                 [195.49.111.90] MX=10
  host mailbackup.switzerland.net [146.228.96.52] MX=20

$ exim -d -odf localuser
$ exim -q -v (queues)

POP3 - popa3d

port 110 (xinetd)
(unter Sarge)
keine spezielle Config, oder im Exim

[ ]mappen der IMAP und POP,

IMAP-Cyrus

Imap Server

Grundsätzlich muss ein "normaler" User vorhanden sein.
Diesem muss eine Cyrus-Mailbox estellt werden - mittels cyradmin (adminuser: cyrus)

Port: 143/... xinetd

Konfiguration (x)inet.d exim.conf

log: []
Paketinstallation:
 apt-get install cyrus-imapd cyrus21-admin  (oder aktuellere Versionen)

cyrus user
Zuerst user cyrus erstellen!

Einloggen mit "cyrus" wegen der Admin-Berechtigung
$ cyradm -user cyrus localhost

 localhost password:

$localhost> cm user.test-user

cyradm (Befehle)

 cm            Erzeugt eine neue Mailbox
 lm            Listet Mailboxen auf, Wildcards sind erlaubt
 dm            Löscht eine Mailbox und alle darunterliegenden Mailboxen
 renm          Umbenennen einer Mailbox
 lam           Listet die Zugriffskontrollen einer Mailbox auf
 sam           Hinzufügen von Zugriffsrechten auf eine Mailbox
 dam           Löschen von Zugriffsrechten auf eine Mailbox
 sq            Setzen von Quota-Limits
 lq            Zeigt die Quotas für eine Mailbox an
 lqr           Zeigt die Quotas für eine Toplevel-Mailbox an
 help          Zeigt eine Hilfe aller Befehle an
 quit          Beendet das Programm

man cyrdeliver
Sieve filterprogramm

Webmail (Squirrelmail)

http://alltagswaerme.ch/webmbx/src/webmail.php
/usr/share/squirrelmail/config/conf.pl (cmdline) z.B. default language
src/configtest.php

Tests

$ mutt -f pop(s):/server.tld (s: ssl)
$ mutt -f imap(s):/server.tld

telnet... (allg, Servertests) - netcat
ssh
z.B. um smtp_auth zu testen

Test SMTP mit "telnet server 25"

http://www.ndchost.com/wiki/mail/test-smtp-auth-telnet

base64-encoding: für AUTH Eingabe.
  1. perl -MMIME::Base64 -e 'print encode_base64("username");'
  2. perl -MMIME::Base64 -e 'print encode_base64("passwort");'
  3. base64

im TELNET siehe Beisp. unten
AUTH LOGIN
[ ] noch was falsch im Test mit ddy.ch p@ddy,ch

pogay@U804-Red:~/transfer/pog-IT-geschaeft$ telnet gaert.li 25
Trying 80.74.142.135...
Connected to gaert.li.
Escape character is '^]'.
220 jovinus.metanet.ch ESMTP
EHLO gaert.li
250 jovinus.metanet.ch
MAIL FROM p@ddy.ch
250 ok
RCPT TO patrick.ogay@basel-inside.ch
250 ok
DATA
354 go ahead
blablalb
blalbla

.
250 ok 1287578897 qp 7091  (das Mail kam zwar nicht an...oder versandete irgendwo) 
QUIT
221 jovinus.metanet.ch
Connection closed by foreign host.
user@localhost [~]# telnet exampledomain.com 25
Trying 1.1.1.1...
Connected to exampledomain.com (1.1.1.1).
Escape character is '^]'.
220-server1.exampledomain.com ESMTP Exim 4.66 #1 Wed, 09 May 2007 23:55:12 +0200
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.
EHLO exampledomain.com
250-server1.exampledomain.com Hello  [1.1.1.2]
250-SIZE 52428800
250-PIPELINING
250-AUTH PLAIN LOGIN
250-STARTTLS
250 HELP
AUTH LOGIN
334 VXNlcm5hbWU6
dXNlcm5hbWUuY29t
334 UGFzc3dvcmQ6
bXlwYXNzd29yZA==

235 Authentication succeeded

hostname --fqdn (fully qualified host name)

Edit Page - Page History - Printable View - Recent Changes - WikiHelp - SearchWiki
Page last modified on October 20, 2010, at 04:09 PM, visited:$PageCount