LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Postfix-dovecot cannot receive mail (https://www.linuxquestions.org/questions/linux-server-73/postfix-dovecot-cannot-receive-mail-730537/)

coad 06-03-2009 08:28 PM

Postfix-dovecot cannot receive mail
 
Hi all,

I have installed postfix and just works fine (receive/send) without problem on port 26

So I installed dovecot in order to check my mail with imap and Thunderbird (or other).

After change configuration files (dovecot.conf, main.cf and master.cf).

I setup the account in thunderbird, it ask me for password and no problem for sending mails, but I can only receive mails from my domain, or from external domain only using my domain SMTP.

In other words :
Mail from example.com to mydomain.com -> cannot receive message (retry time not reached for any host after a long failure period)

Mail from example.com to mydomain.com (using mydomain.com SMTP) -> Receive OK.

Nothing logged in the logs, when no receiving mails.

As sending and receiving was working well before installing dovecot and changing configuration of postfix. I think the error may be in postfix configuration files...I have been searching and testing solutions the last 2 days, without success.:(

Thanks in advance for your help.


postconf -n
Code:

alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
defer_transports =
delay_warning_time = 1h
disable_dns_lookups = no
disable_mime_output_conversion = no
html_directory = /usr/share/doc/packages/postfix-doc/html
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_command = /usr/bin/procmail -a "$EXTENSION"
mailbox_size_limit = 0
mailbox_transport =
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains = my_domain.com
masquerade_exceptions = root
message_size_limit = 10240000
message_strip_characters = \0
mydestination = $mydomain, $myhostname, localhost.$mydomain
mydomain = my_domain.com
myhostname = hostname.my_domain.com
mynetworks_style = subnet
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix-doc/README_FILES
relayhost =
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix-doc/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_use_tls = no
smtpd_client_restrictions = permit_mynetworks,permit_sasl_authenticated,permit
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_invalid_hostname,reject_non_fqdn_hostname,permit
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_non_fqdn_recipient,reject_unknown_recipient_domain,reject_unauth_destination,permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_non_fqdn_sender,reject_unknown_sender_domain,reject_unauth_pipelining,reject_unauth_destination,permit
smtpd_use_tls = no
strict_8bitmime = no
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_domains = hash:/etc/postfix/virtual
virtual_alias_maps = hash:/etc/postfix/virtual

Master.cf
Code:

26 inet n - n - - smtpd
        -o smtpd_sasl_auth_enable=yes
        -o smtpd_client_restrictions=permit_mynetworks,permit_sasl_authenticated,reject
pickup    fifo  n      -      n      60      1      pickup
cleanup  unix  n      -      n      -      0      cleanup
qmgr      fifo  n      -      n      300    1      qmgr
rewrite  unix  -      -      n      -      -      trivial-rewrite
bounce    unix  -      -      n      -      0      bounce
defer    unix  -      -      n      -      0      bounce
trace    unix  -      -      n      -      0      bounce
verify    unix  -      -      n      -      1      verify
flush    unix  n      -      n      1000?  0      flush
proxymap  unix  -      -      n      -      -      proxymap
smtp      unix  -      -      n      -      -      smtp
relay    unix  -      -      n      -      -      smtp
        -o fallback_relay=
showq    unix  n      -      n      -      -      showq
error    unix  -      -      n      -      -      error
discard  unix  -      -      n      -      -      discard
local    unix  -      n      n      -      -      local
virtual  unix  -      n      n      -      -      virtual
lmtp      unix  -      -      n      -      -      lmtp
anvil    unix  -      -      n      -      1      anvil
scache          unix        -        -        n        -        1        scache
maildrop  unix  -      n      n      -      -      pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
cyrus          unix        -        n        n        -        -        pipe
  user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
uucp          unix        -        n        n        -        -        pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail    unix  -      n      n      -      -      pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp    unix  -      n      n      -      -      pipe
  flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
procmail  unix  -      n      n      -      -      pipe
  flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient}
retry          unix        -        -        n        -        -        error
proxywrite unix        -        -        n        -        1        proxymap
tlsmgr    unix  -      -      n      1000?  1      tlsmgr


billymayday 06-03-2009 08:39 PM

Sorry, but what's the difference between the 2 examples you gave (apart from one receives and the other doesn't)?

fritz001 06-03-2009 10:23 PM

smart guy.... your mail server MUST run on port 25, and just port 25

coad 06-03-2009 11:59 PM

Quote:

Originally Posted by fritz001 (Post 3562441)
smart guy.... your mail server MUST run on port 25, and just port 25

:redface:
You're right! works better with port 25 on, and with submission on !

Thanks...


All times are GMT -5. The time now is 04:45 AM.