[Fedora-users-br] Postifx + Fetchmail + Dovecot + gmail

Bruno Galindro da Costa bruno.galindro em gmail.com
Quinta Março 8 19:17:28 UTC 2007


Alguém sabe configurar estes caras?
Eu tentei configurá-los da seguinte maneira:

*/etc/postfix/main.cf:*

#soft_bounce = no
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
#default_privs = nobody
myhostname = srv-sme.sme.gov.br
#myhostname = virtual.domain.tld
mydomain = sme.gov.br
#myorigin = $myhostname
myorigin = $mydomain
inet_interfaces = all
#inet_interfaces = $mydomain
#inet_interfaces = $myhostname, localhost
#proxy_interfaces =
#proxy_interfaces = 1.2.3.4
#mydestination = $myhostname, localhost.$mydomain, localhost
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
 mail.$mydomain, www.$mydomain, ftp.$mydomain
#local_recipient_maps = unix:passwd.byname $alias_maps
#local_recipient_maps = proxy:unix:passwd.byname $alias_maps
#local_recipient_maps =
unknown_local_recipient_reject_code = 550
#mynetworks_style = class
mynetworks_style = subnet
#mynetworks_style = host
mynetworks = 192.168.1.0/28, 127.0.0.0/8
#mynetworks = $config_directory/mynetworks
#mynetworks = hash:/etc/postfix/network_table
#relay_domains = $mydestination
relayhost = smtp.gmail.com
#relayhost = [gateway.my.domain]
#relayhost = [mailserver.isp.tld]
#relayhost = uucphost
#relayhost = [an.ip.add.ress]
#relay_recipient_maps = hash:/etc/postfix/relay_recipients
#in_flow_delay = 1s
#alias_maps = dbm:/etc/aliases
#alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases
#alias_database = dbm:/etc/aliases
#alias_database = dbm:/etc/mail/aliases
#alias_database = hash:/etc/aliases
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases
#recipient_delimiter = +
#home_mailbox = Mailbox
home_mailbox = Maildir/
#mail_spool_directory = /var/mail
#mail_spool_directory = /var/spool/mail
#mailbox_command = /some/where/procmail
#mailbox_command = /some/where/procmail -a "$EXTENSION"
#mailbox_transport = lmtp:unix:/file/name
#mailbox_transport = cyrus
#fallback_transport = lmtp:unix:/file/name
#fallback_transport = cyrus
#fallback_transport =
#luser_relay = $user em other.host
#luser_relay = $local em other.host
#luser_relay = admin+$local
#header_checks = regexp:/etc/postfix/header_checks
#fast_flush_domains = $relay_domains
#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
#local_destination_concurrency_limit = 2
#default_destination_concurrency_limit = 20
debug_peer_level = 2
#debug_peer_list = 127.0.0.1
#debug_peer_list = some.domain
debugger_command =
  PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
  xxgdb $daemon_directory/$process_name $process_id & sleep 5
# debugger_command =
# PATH=/bin:/usr/bin:/sbin:/usr/sbin; export PATH; screen
# -dmS $process_name gdb $daemon_directory/$process_name
# $process_id & sleep 1
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /etc/postfix
readme_directory = no

*/root/.fetchmailrc:*
**
set logfile "/var/log/fetchmaillog"
set daemon 10
set syslog
set bouncemail
set postmaster "bruno"
poll pop.gmail.com via gmail.com
        with proto POP3 port 995 and options uidl
        user '*usuario sem o @gmail.com'* there with password *'senha'* is
'bruno' here
        options keep flush fetchall no rewrite  ssl
        mda '/usr/bin/procmail -d %T'


Dovecot: li faqs e artigos q disseram que ele não precisa de nenhuma
configuração inicial

O postfix e o dovecot inicializam numa boa, mas o fetchmail não funciona.
Ele informa a seguinte msg de erro:

[root em srv-sme ~]# fetchmail -v
*fetchmail: WARNING: Running as root is discouraged.
fetchmail: no mailservers have been specified.
*
alguma sugestão?
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://lists.fedoraproject.org/pipermail/br-users/attachments/20070308/e34688d8/attachment.html 


Mais detalhes sobre a lista de discussão br-users