
Jag kör postfix som utgående mailserver, men vad behöver göras för att få den att ta emot mail?
Eller går det att få den att vidarebefodra mailen till min Gmail på något sätt?
Kod: Markera allt
root@servern: /home/emil # host sandnabba.se
sandnabba.se has address 91.95.226.62
sandnabba.se mail is handled by 10 sandnabba.se.
Kod: Markera allt
root@servern: /home/emil # telnet sandnabba.se 25
Trying 91.95.226.62...
Connected to sandnabba.se.
Escape character is '^]'.
ehlo 220 sandnabba.se ESMTP Postfix (Ubuntu)
sandnabba.se
250-sandnabba.se
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from: root@sandnabba.se
250 2.1.0 Ok
rcpt to: mailtest@sandnabba.se
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
Subject: Post till min domän
Hej,
Testar nu
.
250 2.0.0 Ok: queued as 1D533B1A
quit
221 2.0.0 Bye
Connection closed by foreign host.
root@servern: /home/emil # su mailtest
mailtest@servern:/home/emil$ cd
mailtest@servern:~$ ls
public_html
Kod: Markera allt
root@servern: /home/emil # cat /etc/postfix/main.cf
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
# TLS parameters
smtpd_use_tls=no
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
myhostname = sandnabba.se
mydomamin = sandnabba.se
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = servern, localhost.localdomain, , localhost
relayhost =
mynetworks = 127.0.0.0/8 10.0.0.0/24
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
home_mailbox = Mail/
Kod: Markera allt
nisse: nisse@gmail.com
root: nisse
Kod: Markera allt
Delivered-To: emil.sandnabba@gmail.com
Received: by 10.114.203.9 with SMTP id a9cs172357wag;
Sun, 11 Mar 2007 05:09:39 -0700 (PDT)
Received: by 10.66.250.17 with SMTP id x17mr14688516ugh.1173614978519;
Sun, 11 Mar 2007 05:09:38 -0700 (PDT)
Return-Path: <min.bror@gmail.com>
Received: from s20.loopia.se (s20.loopia.se [194.9.94.3])
by mx.google.com with ESMTP id c24si12093474ika.2007.03.11.05.09.37;
Sun, 11 Mar 2007 05:09:38 -0700 (PDT)
Received-SPF: neutral (google.com: 194.9.94.3 is neither permitted nor denied by domain of min.bror@gmail.com)
DomainKey-Status: good (test mode)
Received: (qmail 4226 invoked from network); 11 Mar 2007 12:09:35 -0000
Received: from s5.loopia.se ([194.9.95.245])
(envelope-sender <min.bror@gmail.com>)
by s20.loopia.se (qmail-ldap-1.03) with SMTP
for <emil.sandnabba@gmail.com>; 11 Mar 2007 12:09:35 -0000
Received: (qmail 13234 invoked by alias); 11 Mar 2007 12:09:32 -0000
Delivered-To: alias-emil@sandnabba.se
Received: (qmail 13227 invoked from network); 11 Mar 2007 12:09:32 -0000
Received: from nf-out-0910.google.com (64.233.182.188)
by s5.loopia.se with SMTP; 11 Mar 2007 12:09:32 -0000
Received: by nf-out-0910.google.com with SMTP id o25so1651181nfa
for <emil@sandnabba.se>; Sun, 11 Mar 2007 05:09:31 -0700 (PDT)
Kod: Markera allt
Mar 13 10:01:56 servern postfix/smtpd[1806]: NOQUEUE: reject: RCPT from bay0-omc3-s5.bay0.hotmail.com[65.54.246.205]: 554 5.7.1 <emil@sandnabba.se>: Relay access denied; from=<kompis@hotmail.com> to=<emil@sandnabba.s
e> proto=ESMTP helo=<bay0-omc3-s5.bay0.hotmail.com>
Mar 13 10:01:56 servern postfix/smtpd[1806]: disconnect from bay0-omc3-s5.bay0.hotmail.com[65.54.246.205]
Ändrat lite nu...Lars skrev: Det är nog mydestination som spökar, "mydestination = $myhostname localhost.$mydomain $mydomain" tror jag det ska vara, se http://www.postfix.org/basic.html
Kod: Markera allt
root@servern: /home/emil # host sandnabba.se
sandnabba.se has address 91.95.226.62
sandnabba.se mail is handled by 20 mailforward1.loopia.se.
sandnabba.se mail is handled by 30 mailforward2.loopia.se.
sandnabba.se mail is handled by 10 mailforward1.loopia.se.
sandnabba.se mail is handled by 10 mailforward2.loopia.se.
Kod: Markera allt
myhostname = servern
mydomamin = sandnabba.se
mydestination = servern, localhost.sandnabba.se, sandnabba.se
Kod: Markera allt
Mar 13 14:32:51 servern postfix/smtpd[2328]: connect from unknown[85.89.73.218]
Mar 13 14:32:51 servern postfix/smtpd[2328]: BF7772241B: client=unknown[85.89.73.218]
Mar 13 14:32:52 servern postfix/cleanup[2332]: BF7772241B: message-id=<45F6A803.3030601@sandnabba.se>
Mar 13 14:32:52 servern postfix/qmgr[2277]: BF7772241B: from=<emil@sandnabba.se>, size=529, nrcpt=1 (queue active)
Mar 13 14:32:52 servern postfix/cleanup[2332]: 1370F2245E: message-id=<45F6A803.3030601@sandnabba.se>
Mar 13 14:32:52 servern postfix/qmgr[2277]: 1370F2245E: from=<emil@sandnabba.se>, size=649, nrcpt=1 (queue active)
Mar 13 14:32:52 servern postfix/local[2333]: BF7772241B: to=<emil@sandnabba.se>, relay=local, delay=0.47, delays=0.39/0.04/0/0.04, dsn=2.0.0, status=sent (forwarded as 1370F2245E)
Mar 13 14:32:52 servern postfix/qmgr[2277]: BF7772241B: removed
Mar 13 14:32:52 servern postfix/smtpd[2328]: disconnect from unknown[85.89.73.218]
Mar 13 14:32:53 servern postfix/smtp[2334]: 1370F2245E: to=<emil.sandnabba@gmail.com>, orig_to=<emil@sandnabba.se>, relay=gmail-smtp-in.l.google.com[66.249.93.114]:25, delay=1.4, delays=0.02/0.05/0.46/0.9, dsn=2.0.0, sta
tus=sent (250 2.0.0 OK 1173792773 50si7569607ugb)
Mar 13 14:32:53 servern postfix/qmgr[2277]: 1370F2245E: removed