PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : kleines Postfix problem



Homer56
20.07.05, 00:30
Guten Tag


Ich richtet heute mal Postfix ein, nur hab ich das Problem das ich keine Mails verschicken kann. Das ganze sollte über gmail gehen.

Hier die Fehlermeldung:

cat /var/log/mail.info


Jul 20 01:33:34 ubuntu postfix/postfix-script: refreshing the Postfix mail system
Jul 20 01:33:34 ubuntu postfix/master[2373]: reload configuration
Jul 20 01:33:34 ubuntu postfix/master[2373]: warning: service smtp: ignoring inet_interfaces change
Jul 20 01:33:34 ubuntu postfix/master[2373]: warning: to change inet_interfaces, stop and start Postfix
Jul 20 01:33:37 ubuntu postfix/pickup[2484]: A91A741032: uid=1000 from=<manuel>
Jul 20 01:33:37 ubuntu postfix/cleanup[2490]: A91A741032: message-id=<20050719233337.A91A741032@ubuntu>
Jul 20 01:33:37 ubuntu postfix/qmgr[2485]: A91A741032: from=<manuel@ubuntu>, size=279, nrcpt=1 (queue active)
Jul 20 01:33:37 ubuntu postfix/smtp[2492]: fatal: config variable inet_interfaces: host not found: loopback-only
Jul 20 01:33:38 ubuntu postfix/qmgr[2485]: warning: premature end-of-input on private/smtp socket while reading input attribute name
Jul 20 01:33:38 ubuntu postfix/qmgr[2485]: warning: private/smtp socket: malformed response
Jul 20 01:33:38 ubuntu postfix/qmgr[2485]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description
Jul 20 01:33:38 ubuntu postfix/master[2373]: warning: process /usr/lib/postfix/smtp pid 2492 exit status 1
Jul 20 01:33:38 ubuntu postfix/master[2373]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling



Configs:

main.cf


# See /usr/share/postfix/main.cf.dist for a commented, more complete version

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

myhostname = ubuntu
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = ubuntu, localhost.localdomain, localhost
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = loopback-only

## Add these lines to the bottom on main.cf
##
##


## TLS Settings
#
# For no logs set = 0
smtp_tls_loglevel = 1
#
# smtp_enforce_tls = yes
# Above is commented because doing it site by site below
smtp_tls_per_site = hash:/etc/postfix/tls_per_site
#
smtp_tls_CAfile = /etc/postfix/cacert.pem
smtp_tls_cert_file = /etc/postfix/FOO-cert.pem
smtp_tls_key_file = /etc/postfix/FOO-key.pem
smtp_tls_session_cache_database = btree:/var/run/smtp_tls_session_cache
smtp_use_tls = yes
smtpd_tls_CAfile = /etc/postfix/cacert.pem
smtpd_tls_cert_file = /etc/postfix/FOO-cert.pem
smtpd_tls_key_file = /etc/postfix/FOO-key.pem
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = btree:/var/run/smtpd_tls_session_cache
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom

## SASL Settings
# This is going in to THIS server
smtpd_sasl_auth_enable = no
# We need this
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtpd_sasl_local_domain = $myhostname
smtp_sasl_security_options = noanonymous
#smtp_sasl_security_options =
smtp_sasl_tls_security_options = noanonymous
smtpd_sasl_application_name = smtpd


## Gmail Relay
relayhost = [smtp.gmail.com]

## Good for Testing
# sender_bcc_maps = hash:/etc/postfix/bcc_table

# Disable DNS Lookups
disable_dns_lookups = yes
#
# Great New feature Address Mapping
# for example may mchirico@localhost to mchirico@gmail.com
smtp_generic_maps = hash:/etc/postfix/generic
#
#
transport_maps = hash:/etc/postfix/transport

transport


# Contents of /etc/postfix/transport
#
# This sends mail to Gmail
gmail.com smtp:[smtp.gmail.com]
#
# Except mail going to the tape and closet server
tape.ubunut relay:[tape.squeezel.com]
closet.ubuntu relay:[closet.squeezel.com]

Ich machte das ganze nach diesem HowTo:

http://souptonuts.sourceforge.net/postfix_tutorial.html


Vielen Dank schon im Vorraus Oo

Webdude
20.07.05, 07:06
Da stehts doch klar und deutlich:


Jul 20 01:33:37 ubuntu postfix/smtp[2492]: fatal: config variable inet_interfaces: host not found: loopback-only


Die Variable "inet_interfaces" in der main.cf ist nicht richtig gesetzt. Hier trägst du die Netzwerkinterfaces ein an die Postfix sich binden soll.
Wenn da loopback (loopback-only gibts nicht) steht kann der Rechner natürlich auch keine Mails nach aussen schicken.