Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 12

Discussione: fetchmail

  1. #1
    Utente di HTML.it
    Registrato dal
    Sep 2006
    Messaggi
    83

    fetchmail

    Ho configurato fetchmail con fetchmailconf....lo avvio...va tutto bene....nel debug di fetchmailconf m dice che ci sono nuovi messaggi....ma dove li mette? anche se la configurazione di postfix è errata...non dovrebbero comunque andare in /var/spool/mail? a me i messaggi che scarica non stanno da nessuna parte...qualcuno m fa capire qualcosa?

  2. #2
    Utente di HTML.it L'avatar di flygigi
    Registrato dal
    Sep 2000
    Messaggi
    259
    magari se posti la configurazione del tuo fetchmailrc .......

    poi anche quella di postfix e altre info sulla macchina non farebbero male .

    La posta puo' venire reinviata dovunque con le informazioni che ci hai dato .... anche essere rigettata e rispedita al mittente.
    There's no place like /home
    ----------------------------------------
    On contrary of popular belief, Unix *IS* user friendly: it just appears to be selective who it is friend with
    ----------------------------------------
    Real hackers don't die, their TTL expires

  3. #3
    Utente di HTML.it
    Registrato dal
    Sep 2006
    Messaggi
    83
    set postmaster "fabio"
    set properties ""
    set daemon 10
    poll popmail.email.it with proto POP3
    user 'mia@mail.it' there with password 'pass' is 'mia@mail.it' here

    Questo è il file .fetchmailrc. penso che vada bene perche fetchmail scarica correttamente la posta. ma ovviamente non so dove la mette.

  4. #4
    Utente di HTML.it
    Registrato dal
    Sep 2006
    Messaggi
    83
    Con il modulo di postfix per webmin riesco a vedere che in queue ci sono 14 email...praticamente le prove che ho fatto piu email ricevute normalmente...se ci clicco su riesco a vederle ma nello status ( dello smistamento penso ) c'è scritto:

    connect to 127.0.0.1[127.0.0.1]: Connection refused

  5. #5
    Utente di HTML.it
    Registrato dal
    Sep 2006
    Messaggi
    83
    questo è il file main.cf di postfix


    command_directory = /usr/sbin

    daemon_directory = /usr/lib/postfix

    myhostname = linuxserv.ufficio
    #myhostname = virtual.domain.tld
    mydomain = ufficio


    #myorigin = $myhostname


    #inet_interfaces = all
    #inet_interfaces = $myhostname
    #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

    unknown_local_recipient_reject_code = 550


    #mynetworks = 168.100.189.0/28, 127.0.0.0/8
    #mynetworks = $config_directory/mynetworks
    #mynetworks = hash:/etc/postfix/network_table



    # - destinations that match $inet_interfaces or $proxy_interfaces,
    # - destinations that match $mydestination
    # - destinations that match $virtual_alias_domains,
    # - destinations that match $virtual_mailbox_domains.
    # These destinations do not need to be listed in $relay_domains.
    #
    # Specify a list of hosts or domains, /file/name patterns or type:name
    # lookup tables, separated by commas and/or whitespace. Continue
    # long lines by starting the next line with whitespace. A file name
    # is replaced by its contents; a type:name table is matched when a
    # (parent) domain appears as lookup key.
    #
    # NOTE: Postfix will not automatically forward mail for domains that
    # list this system as their primary or backup MX host. See the
    # permit_mx_backup restriction description in postconf(5).
    #
    #relay_domains = $mydestination

    # INTERNET OR INTRANET


    #relayhost = $mydomain
    #relayhost = [gateway.my.domain]
    #relayhost = [smtp.email.it]:25
    #relayhost = uucphost
    #relayhost = [an.ip.add.ress]


    #alias_maps = dbm:/etc/aliases
    #alias_maps = hash:/etc/aliases
    #alias_maps = hash:/etc/aliases, nis:mail.aliases
    #alias_maps = netinfo:/aliases

    # The alias_database parameter specifies the alias database(s) that
    # are built with "newaliases" or "sendmail -bi". This is a separate
    # configuration parameter, because alias_maps (see above) may specify
    # tables that are not necessarily all under control by Postfix.
    #
    #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


    # DELIVERY TO MAILBOX
    #
    # The home_mailbox parameter specifies the optional pathname of a
    # mailbox file relative to a user's home directory. The default
    # mailbox file is /var/spool/mail/user or /var/mail/user. Specify
    # "Maildir/" for qmail-style delivery (the / is required).
    #
    #home_mailbox = Mailbox
    #home_mailbox = Maildir/

    # The mail_spool_directory parameter specifies the directory where
    # UNIX-style mailboxes are kept. The default setting depends on the
    # system type.
    #
    #mail_spool_directory = /var/mail
    #mail_spool_directory = /var/spool/mail

    # The mailbox_command parameter specifies the optional external
    # command to use instead of mailbox delivery. The command is run as
    # the recipient with proper HOME, SHELL and LOGNAME environment settings.
    # Exception: delivery for root is done as $default_user.
    #
    # Other environment variables of interest: USER (recipient username),
    # EXTENSION (address extension), DOMAIN (domain part of address),
    # and LOCAL (the address localpart).
    #
    # Unlike other Postfix configuration parameters, the mailbox_command
    # parameter is not subjected to $parameter substitutions. This is to
    # make it easier to specify shell syntax (see example below).
    #
    # Avoid shell meta characters because they will force Postfix to run
    # an expensive shell process. Procmail alone is expensive enough.
    #
    # IF YOU USE THIS TO DELIVER MAIL SYSTEM-WIDE, YOU MUST SET UP AN
    # ALIAS THAT FORWARDS MAIL FOR ROOT TO A REAL USER.
    #
    mailbox_command = /usr/bin/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 =

    # The luser_relay parameter specifies an optional destination address
    # for unknown recipients. By default, mail for unknown@$mydestination,
    # unknown@[$inet_interfaces] or unknown@[$proxy_interfaces] is returned
    # as undeliverable.
    #
    # The following expansions are done on luser_relay: $user (recipient
    # username), $shell (recipient shell), $home (recipient home directory),
    # $recipient (full recipient address), $extension (recipient address
    # extension), $domain (recipient domain), $local (entire recipient
    # localpart), $recipient_delimiter. Specify ${name?value} or
    # ${name:value} to expand value only when $name does (does not) exist.
    #
    # luser_relay works only for the default Postfix local delivery agent.
    #
    # NOTE: if you use this feature for accounts not in the UNIX password
    # file, then you must specify "local_recipient_maps =" (i.e. empty) in
    # the main.cf file, otherwise the SMTP server will reject mail for
    # non-UNIX accounts with "User unknown in local recipient table".
    #
    #luser_relay = $user@other.host
    #luser_relay = $local@other.host
    #luser_relay = admin+$local

    # JUNK MAIL CONTROLS
    #
    # The controls listed here are only a very small subset. The file
    # SMTPD_ACCESS_README provides an overview.

    # The header_checks parameter specifies an optional table with patterns
    # that each logical message header is matched against, including
    # headers that span multiple physical lines.
    #
    # By default, these patterns also apply to MIME headers and to the
    # headers of attached messages. With older Postfix versions, MIME and
    # attached message headers were treated as body text.
    #
    # For details, see "man header_checks".
    #
    #header_checks = regexp:/etc/postfix/header_checks

    # FAST ETRN SERVICE
    #
    # Postfix maintains per-destination logfiles with information about
    # deferred mail, so that mail can be flushed quickly with the SMTP
    # "ETRN domain.tld" command, or by executing "sendmail -qRdomain.tld".
    # See the ETRN_README document for a detailed description.
    #
    # The fast_flush_domains parameter controls what destinations are
    # eligible for this service. By default, they are all domains that
    # this server is willing to relay mail to.
    #
    #fast_flush_domains = $relay_domains

    # SHOW SOFTWARE VERSION OR NOT
    #
    # The smtpd_banner parameter specifies the text that follows the 220
    # code in the SMTP server's greeting banner. Some people like to see
    # the mail version advertised. By default, Postfix shows no version.
    #
    # You MUST specify $myhostname at the start of the text. That is an
    # RFC requirement. Postfix itself does not care.
    #
    #smtpd_banner = $myhostname ESMTP $mail_name
    #smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)

    # PARALLEL DELIVERY TO THE SAME DESTINATION
    #
    # How many parallel deliveries to the same user or domain? With local
    # delivery, it does not make sense to do massively parallel delivery
    # to the same user, because mailbox updates must happen sequentially,
    # and expensive pipelines in .forward files can cause disasters when
    # too many are run at the same time. With SMTP deliveries, 10
    # simultaneous connections to the same domain could be sufficient to
    # raise eyebrows.
    #
    # Each message delivery transport has its XXX_destination_concurrency_limit
    # parameter. The default is $default_destination_concurrency_limit for
    # most delivery transports. For the local delivery agent the default is 2.

    #local_destination_concurrency_limit = 2
    #default_destination_concurrency_limit = 20

    # DEBUGGING CONTROL
    #
    # The debug_peer_level parameter specifies the increment in verbose
    # logging level when an SMTP client or server host name or address
    # matches a pattern in the debug_peer_list parameter.
    #
    debug_peer_level = 2

    # The debug_peer_list parameter specifies an optional list of domain
    # or network patterns, /file/name patterns or type:name tables. When
    # an SMTP client or server host name or address matches a pattern,
    # increase the verbose logging level by the amount specified in the
    # debug_peer_level parameter.
    #
    #debug_peer_list = 127.0.0.1
    #debug_peer_list = some.domain

    # The debugger_command specifies the external command that is executed
    # when a Postfix daemon program is run with the -D option.
    #
    # Use "command .. & sleep 5" so that the debugger can attach before
    # the process marches on. If you use an X-based debugger, be sure to
    # set up your XAUTHORITY environment variable before starting Postfix.
    #
    debugger_command =
    PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
    xxgdb $daemon_directory/$process_name $process_id & sleep 5

    # If you can't use X, use this to capture the call stack when a
    # daemon crashes. The result is in a file in the configuration
    # directory, and is named after the process name and the process ID.
    #
    # debugger_command =
    # PATH=/bin:/usr/bin:/usr/local/bin; export PATH; (echo cont;
    # echo where) | gdb $daemon_directory/$process_name $process_id 2>&1
    # >$config_directory/$process_name.$process_id.log & sleep 5
    #
    # Another possibility is to run gdb under a detached screen session.
    # To attach to the screen sesssion, su root and run "screen -r
    # <id_string>" where <id_string> uniquely matches one of the detached
    # sessions (from "screen -list").
    #
    # debugger_command =
    # PATH=/bin:/usr/bin:/sbin:/usr/sbin; export PATH; screen
    # -dmS $process_name gdb $daemon_directory/$process_name
    # $process_id & sleep 1

    # INSTALL-TIME CONFIGURATION INFORMATION
    #
    # The following parameters are used when installing a new Postfix version.
    #
    # sendmail_path: The full pathname of the Postfix sendmail command.
    # This is the Sendmail-compatible mail posting interface.
    #
    sendmail_path = /usr/sbin/sendmail

    # newaliases_path: The full pathname of the Postfix newaliases command.
    # This is the Sendmail-compatible command to build alias databases.
    #
    newaliases_path = /usr/bin/newaliases

    # mailq_path: The full pathname of the Postfix mailq command. This
    # is the Sendmail-compatible mail queue listing command.
    #
    mailq_path = /usr/bin/mailq

    # setgid_group: The group for mail submission and queue management
    # commands. This must be a group name with a numerical group ID that
    # is not shared with other accounts, not even with the Postfix account.
    #
    setgid_group = maildrop

    # html_directory: The location of the Postfix HTML documentation.
    #
    html_directory = /usr/share/doc/packages/postfix/html

    # manpage_directory: The location of the Postfix on-line manual pages.
    #
    manpage_directory = /usr/share/man

    # sample_directory: The location of the Postfix sample configuration files.
    # This parameter is obsolete as of Postfix 2.1.
    #
    sample_directory = /usr/share/doc/packages/postfix/samples

    # readme_directory: The location of the Postfix README files.
    #
    readme_directory = /usr/share/doc/packages/postfix/README_FILES
    inet_protocols = all
    biff = no
    mail_spool_directory = /var/spool/mail
    canonical_maps = hash:/etc/postfix/canonical
    virtual_alias_maps = hash:/etc/postfix/virtual
    virtual_alias_domains = hash:/etc/postfix/virtual
    relocated_maps = hash:/etc/postfix/relocated
    transport_maps = hash:/etc/postfix/transport
    sender_canonical_maps = hash:/etc/postfix/sender_canonical
    masquerade_exceptions = root
    masquerade_classes = envelope_sender, header_sender, header_recipient
    myhostname = linuxserv.ufficio
    program_directory = /usr/lib/postfix
    masquerade_domains =
    defer_transports =
    disable_dns_lookups = yes
    relayhost = smtp.email.it
    strict_8bitmime = no
    disable_mime_output_conversion = no
    smtpd_sender_restrictions = hash:/etc/postfix/access
    smtpd_client_restrictions =
    smtpd_helo_required = no
    smtpd_helo_restrictions =
    strict_rfc821_envelopes = no
    smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
    smtp_sasl_auth_enable = yes
    smtpd_sasl_auth_enable = no
    smtpd_use_tls = no
    smtp_use_tls = no
    alias_maps = hash:/etc/aliases
    mailbox_size_limit = 0
    message_size_limit = 10240000
    smtp_sasl_security_options =
    smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd

  6. #6
    Utente di HTML.it
    Registrato dal
    Sep 2006
    Messaggi
    83
    Altra cosa..ora riesco a liberare la coda...ma l'email tornano indietro con scritto:

    This is the Postfix program at host linuxserv.ufficio.

    I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below.

    For further assistance, please send mail to <postmaster>

    If you do so, please include this problem report. You can delete your own text from the attached returned message.

    The Postfix program

    <ricevente@email.it>: host smtp.email.it[80.247.70.44] said: 553
    <miamail@libero.it>: Sender address rejected: not owned by user
    ricevente@email.it (in reply to RCPT TO command)

  7. #7
    Utente di HTML.it L'avatar di flygigi
    Registrato dal
    Sep 2000
    Messaggi
    259
    Originariamente inviato da fev
    user 'mia@mail.it' there with password 'pass' is 'mia@mail.it' here

    Questo è il file .fetchmailrc. penso che vada bene perche fetchmail scarica correttamente la posta. ma ovviamente non so dove la mette.
    se configuri cosi' il fetchmail, lui scarica la posta dal provider, e poi la reinvia al provider poiche' tu gli dici che in locale l'indirizzo a cui consegnare la posta appena scaricata è mia@mail.it .

    quindi dovresti fare :

    user 'mia@mail.it' there with password 'pass' is 'utente_locale ' here

    poi comunque io mi leggerei anche un bel manuale di postfix.

    Ciao
    Riccardo
    There's no place like /home
    ----------------------------------------
    On contrary of popular belief, Unix *IS* user friendly: it just appears to be selective who it is friend with
    ----------------------------------------
    Real hackers don't die, their TTL expires

  8. #8
    Utente di HTML.it L'avatar di flygigi
    Registrato dal
    Sep 2000
    Messaggi
    259
    Originariamente inviato da fev
    Con il modulo di postfix per webmin riesco a vedere che in queue ci sono 14 email...praticamente le prove che ho fatto piu email ricevute normalmente...se ci clicco su riesco a vederle ma nello status ( dello smistamento penso ) c'è scritto:

    connect to 127.0.0.1[127.0.0.1]: Connection refused
    lascia perdere webmin!!!

    usa mailq
    e guarda cosa ti scrive in /var/log/mail
    There's no place like /home
    ----------------------------------------
    On contrary of popular belief, Unix *IS* user friendly: it just appears to be selective who it is friend with
    ----------------------------------------
    Real hackers don't die, their TTL expires

  9. #9
    Utente di HTML.it L'avatar di flygigi
    Registrato dal
    Sep 2000
    Messaggi
    259
    Non ho capito dal tuo file di configurazione cosa usi come distribuzione, ma se fossi in te proverei con una conf minimale come questa :

    codice:
    sendmail_path = /usr/sbin/sendmail
    newaliases_path = /usr/bin/newaliases
    mailq_path = /usr/bin/mailq
    setgid_group = maildrop
    html_directory = /usr/share/doc/packages/postfix/html
    manpage_directory = /usr/share/man
    sample_directory = /usr/share/doc/packages/postfix/samples
    readme_directory = /usr/share/doc/packages/postfix/README_FILES
    biff = no
    mail_spool_directory = /var/mail
    canonical_maps = hash:/etc/postfix/canonical
    virtual_maps = hash:/etc/postfix/virtual
    relocated_maps = hash:/etc/postfix/relocated
    transport_maps = hash:/etc/postfix/transport
    sender_canonical_maps = hash:/etc/postfix/sender_canonical
    masquerade_exceptions = root
    masquerade_classes = envelope_sender, header_sender, header_recipient
    myhostname = linuxserv.ufficio
    mydomain = ufficio
    myorigin = $mydomain
    mynetorks = 127.0.0.0/8, 192.168.1.0/24
    program_directory = /usr/lib/postfix
    inet_interfaces = all
    mydestination = $myhostname, localhost.$mydomain, $mydomain
    disable_dns_lookups = no
    relayhost = smtp.email.it
    mailbox_command = /usr/bin/procmail
    smtpd_sender_restrictions = hash:/etc/postfix/access
    strict_rfc821_envelopes = no
    smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
    alias_maps = hash:/etc/aliases
    mailbox_size_limit = 0
    message_size_limit = 0
    Inoltre :

    sei sicuro che smtp.email.it accetti che il tuo server lo utilizzi come relay ?
    tu lo usi come server di posta in uscita anche da altri pc (intendo smtp.email.it) senza utilizzare autenticazione smtp ?
    a questo punto se hai creato almeno un utente su linux,ad esempio l'utente pippo, il tuo fetchmail dovrebbe essere una cosa del genere :

    codice:
    user 'xxx@email.it' there with password 'pass' is 'pippo' here
    Spero di essermi spiegato.

    Per fare altri test alcune info te le ho già date, ad es. mailq e /var/log/mail ma sicuramente farebbe comodo sapere l'ouput di questi comandi :

    1) nmap localhost
    2) telnet localhost 25
    3) provare ad inviare una mail ad un utente non @email.it dalla shell della tua macchina utilizzando smtp.email.it come mail server
    4) /var/log/mail
    There's no place like /home
    ----------------------------------------
    On contrary of popular belief, Unix *IS* user friendly: it just appears to be selective who it is friend with
    ----------------------------------------
    Real hackers don't die, their TTL expires

  10. #10
    Utente di HTML.it
    Registrato dal
    Sep 2006
    Messaggi
    83
    ho fatto quella modifica al fetchmailrc ma non cambia nulla...legge la posta...mette in queue...se forzo...la toglie da li...ma non si sa dove va a finire la posta.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.