1

Topic: mail not working

Dear,

         I am in new for both mailserver and iredmail, kindly guide me
==== Required information ====
- iRedMail version: 0.8.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: CentOS 6 64Bit
- Related log if you're reporting an issue: maillog
====

ar 26 11:09:59 mail postfix/smtpd[4395]: connect from localhost[127.0.0.1]
Mar 26 11:09:59 mail postfix/smtpd[4395]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 5.1.1 <maniji@xxx.net>: Recipient address rejected: User unknown in virtual mailbox table; from=<admin@xxx.net> to=<maniji@xxx.net> proto=ESMTP helo=<192.168.1.231>
Mar 26 11:09:59 mail roundcube: SMTP Error: SMTP error: Failed to add recipient 'maniji@xxx.net' in /var/www/roundcubemail-0.8.2/program/include/main.inc on line 1485 (POST /webmail/?_unlock=loading1364276398118&_lang=undefined?_task=mail&_action=send)
Mar 26 11:09:59 mail postfix/smtpd[4395]: disconnect from localhost[127.0.0.1]

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: mail not working

manikandantgr wrote:

Mar 26 11:09:59 mail postfix/smtpd[4395]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 5.1.1 <maniji@xxx.net>: Recipient address rejected: User unknown in virtual mailbox table; from=<admin@xxx.net> to=<maniji@xxx.net> proto=ESMTP helo=<192.168.1.231>

Does user "maniji@xxx.net" exist on your server?

3

Re: mail not working

ZhangHuangbin wrote:
manikandantgr wrote:

Mar 26 11:09:59 mail postfix/smtpd[4395]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 5.1.1 <maniji@xxx.net>: Recipient address rejected: User unknown in virtual mailbox table; from=<admin@xxx.net> to=<maniji@xxx.net> proto=ESMTP helo=<192.168.1.231>

Does user "maniji@xxx.net" exist on your server?


yes i already using this email id

4

Re: mail not working

- Please show us output of command "postconf -n" to help troubleshoot.
- Show us output of below command (Of course you must replace "maniji@xxx.net" with the real email address while executing the command):

# cd /etc/postfix/mysql/
# for cf in $(ls *.cf); do echo ${cf}; postmap -q maniji@xxx.net mysql:./${cf}; done

5

Re: mail not working

postconf -n

alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
allow_min_user = no
biff = no
bounce_queue_lifetime = 1d
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
delay_warning_time = 0h
disable_vrfy_command = yes
enable_original_recipient = no
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = ipv4
mail_owner = postfix
mailbox_command = /usr/libexec/dovecot/deliver
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
maximal_backoff_time = 4000s
maximal_queue_lifetime = 1d
message_size_limit = 15728640
minimal_backoff_time = 300s
mydestination = $myhostname, localhost, localhost.localdomain, localhost.$myhostname
mydomain = xxx.net
myhostname = mail.xxx.net
mynetworks = 127.0.0.0/8
mynetworks_style = subnet
myorigin = mail.xxx.net
newaliases_path = /usr/bin/newaliases.postfix
proxy_read_maps = $canonical_maps $lmtp_generic_maps $local_recipient_maps $mydestination $mynetworks $recipient_bcc_maps $recipient_canonical_maps $relay_domains $relay_recipient_maps $relocated_maps $sender_bcc_maps $sender_canonical_maps $smtp_generic_maps $smtpd_sender_login_maps $transport_maps $virtual_alias_domains $virtual_alias_maps $virtual_mailbox_domains $virtual_mailbox_maps $smtpd_sender_restrictions
queue_directory = /var/spool/postfix
queue_run_delay = 300s
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
recipient_bcc_maps = proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_user.cf, proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_domain.cf
recipient_delimiter = +
relay_domains = $mydestination, proxy:mysql:/etc/postfix/mysql/relay_domains.cf
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sender_bcc_maps = proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_user.cf, proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_domain.cf
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_data_init_timeout = 240s
smtp_data_xfer_timeout = 600s
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks,permit_sasl_authenticated, check_helo_access pcre:/etc/postfix/helo_access.pcre
smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unlisted_recipient, check_policy_service inet:127.0.0.1:7777, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, check_policy_service inet:127.0.0.1:10031
smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = no
smtpd_sasl_local_domain =
smtpd_sasl_path = ./dovecot-auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_login_maps = proxy:mysql:/etc/postfix/mysql/sender_login_maps.cf
smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated
smtpd_tls_CAfile = /etc/pki/tls/certs/iRedMail_CA.pem
smtpd_tls_cert_file = /etc/pki/tls/certs/iRedMail_CA.pem
smtpd_tls_key_file = /etc/pki/tls/private/iRedMail.key
smtpd_tls_loglevel = 0
smtpd_tls_security_level = may
tls_random_source = dev:/dev/urandom
transport_maps = proxy:mysql:/etc/postfix/mysql/transport_maps_user.cf, proxy:mysql:/etc/postfix/mysql/transport_maps_domain.cf
unknown_local_recipient_reject_code = 550
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql/virtual_alias_maps.cf, proxy:mysql:/etc/postfix/mysql/domain_alias_maps.cf, proxy:mysql:/etc/postfix/mysql/catchall_maps.cf, proxy:mysql:/etc/postfix/mysql/domain_alias_catchall_maps.cf
virtual_gid_maps = static:501
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_maps.cf
virtual_minimum_uid = 500
virtual_transport = dovecot
virtual_uid_maps = static:500

6

Re: mail not working

[root@mail Desktop]# cd /etc/postfix/mysql/
[root@mail mysql]# for cf in $(ls *.cf); do echo ${cf}; postmap -q maniji@xxx.net mysql:./${cf}; done
catchall_maps.cf
domain_alias_catchall_maps.cf
domain_alias_maps.cf
recipient_bcc_maps_domain.cf
recipient_bcc_maps_user.cf
relay_domains.cf
sender_bcc_maps_domain.cf
sender_bcc_maps_user.cf
sender_login_maps.cf
transport_maps_domain.cf
transport_maps_user.cf
virtual_alias_maps.cf
virtual_mailbox_domains.cf
virtual_mailbox_maps.cf

7

Re: mail not working

plz guide me, mailserver is not fetch any mail.

8

Re: mail not working

manikandantgr wrote:

[root@mail mysql]# for cf in $(ls *.cf); do echo ${cf}; postmap -q maniji@xxx.net mysql:./${cf}; done
sender_login_maps.cf

Did you replace 'maniji@xxx.net' with real email address? If yes, Postfix cannot find this user. You have to check SQL record manually to figure out why it's not available in SQL query. Or try this:

# cd /etc/postfix/mysql/
# postmap -v -q maniji@xxx.net mysql:./sender_login_maps.cf

Again, replace 'maniji@xxx.net' with a real email address.

9

Re: mail not working

this is real email address maniji _at_ warsawinternational.net
how to replace??

[root@mail mysql]# postmap -v -q maniji _at_ warsawinternational.net mysql:./sender_login_maps.cf
postmap: dict_eval: const  mail
postmap: dict_eval: const  ipv4
postmap: dict_eval: const 
postmap: dict_eval: const 
postmap: dict_eval: const 
postmap: name_mask: ipv4
postmap: dict_eval: const  mail.warsawinternational.net
postmap: dict_eval: const  warsawinternational.net
postmap: dict_eval: const  Postfix
postmap: dict_eval: expand ${multi_instance_name:postfix}${multi_instance_name?$multi_instance_name} -> postfix
postmap: dict_eval: const  postfix
postmap: dict_eval: const  postdrop
postmap: dict_eval: expand $myhostname, localhost, localhost.localdomain, localhost.$myhostname -> mail.warsawinternational.net, localhost, localhost.localdomain, localhost.mail.warsawinternational.net
postmap: dict_eval: const  mail.warsawinternational.net
postmap: dict_eval: const 
postmap: dict_eval: const  /usr/libexec/postfix
postmap: dict_eval: const  /var/lib/postfix
postmap: dict_eval: const  /usr/sbin
postmap: dict_eval: const  /var/spool/postfix
postmap: dict_eval: const  pid
postmap: dict_eval: const  all
postmap: dict_eval: const 
postmap: dict_eval: const  double-bounce
postmap: dict_eval: const  nobody
postmap: dict_eval: const  hash:/etc/postfix/aliases
postmap: dict_eval: const  20100319
postmap: dict_eval: const  2.6.6
postmap: dict_eval: const  hash
postmap: dict_eval: const  deferred, defer
postmap: dict_eval: const  +
postmap: dict_eval: expand $mydestination, proxy:mysql:/etc/postfix/mysql/relay_domains.cf -> mail.warsawinternational.net, localhost, localhost.localdomain, localhost.mail.warsawinternational.net, proxy:mysql:/etc/postfix/mysql/relay_domains.cf
postmap: dict_eval: expand $relay_domains -> mail.warsawinternational.net, localhost, localhost.localdomain, localhost.mail.warsawinternational.net, proxy:mysql:/etc/postfix/mysql/relay_domains.cf
postmap: dict_eval: const  TZ MAIL_CONFIG LANG
postmap: dict_eval: const  MAIL_CONFIG MAIL_DEBUG MAIL_LOGTAG TZ XAUTHORITY DISPLAY LANG=C
postmap: dict_eval: const  subnet
postmap: dict_eval: const 
postmap: dict_eval: const  +=
postmap: dict_eval: const  -=+
postmap: dict_eval: const  debug_peer_list,fast_flush_domains,mynetworks,permit_mx_backup_networks,qmqpd_authorized_clients,relay_domains,smtpd_access_maps
postmap: dict_eval: const 
postmap: dict_eval: const  bounce
postmap: dict_eval: const  cleanup
postmap: dict_eval: const  defer
postmap: dict_eval: const  pickup
postmap: dict_eval: const  qmgr
postmap: dict_eval: const  rewrite
postmap: dict_eval: const  showq
postmap: dict_eval: const  error
postmap: dict_eval: const  flush
postmap: dict_eval: const  verify
postmap: dict_eval: const  trace
postmap: dict_eval: const  proxymap
postmap: dict_eval: const  proxywrite
postmap: dict_eval: const 
postmap: dict_eval: const 
postmap: dict_eval: const  15728640
postmap: dict_eval: const  2
postmap: dict_eval: const  100s
postmap: dict_eval: const  100s
postmap: dict_eval: const  100s
postmap: dict_eval: const  100s
postmap: dict_eval: const  3600s
postmap: dict_eval: const  3600s
postmap: dict_eval: const  5s
postmap: dict_eval: const  5s
postmap: dict_eval: const  1000s
postmap: dict_eval: const  1000s
postmap: dict_eval: const  10s
postmap: dict_eval: const  10s
postmap: dict_eval: const  1s
postmap: dict_eval: const  1s
postmap: dict_eval: const  1s
postmap: dict_eval: const  1s
postmap: dict_eval: const  500s
postmap: dict_eval: const  500s
postmap: dict_eval: const  18000s
postmap: dict_eval: const  18000s
postmap: dict_eval: const  1s
postmap: dict_eval: const  1s
postmap: dict_eval: const  127.0.0.0/8
postmap: inet_addr_local: configured 3 IPv4 addresses
postmap: cfg_get_str: ./sender_login_maps.cf: user = vmail
postmap: cfg_get_str: ./sender_login_maps.cf: password = xxxx
postmap: cfg_get_str: ./sender_login_maps.cf: dbname = vmail
postmap: cfg_get_str: ./sender_login_maps.cf: result_format = %s
postmap: cfg_get_int: ./sender_login_maps.cf: expansion_limit = 0
postmap: cfg_get_str: ./sender_login_maps.cf: query = SELECT mailbox.username FROM mailbox,domain WHERE mailbox.username='%s' AND mailbox.domain='%d' AND mailbox.domain=domain.domain AND mailbox.enablesmtp=1 AND mailbox.active=1 AND domain.backupmx=0 AND domain.active=1
postmap: cfg_get_str: ./sender_login_maps.cf: domain =
postmap: cfg_get_str: ./sender_login_maps.cf: hosts = 127.0.0.1
postmap: dict_open: mysql:./sender_login_maps.cf
postmap: dict_mysql_get_active: attempting to connect to host 127.0.0.1
postmap: dict_mysql: successful connection to host 127.0.0.1
postmap: dict_mysql: successful query from host 127.0.0.1
postmap: dict_mysql_lookup: retrieved 1 rows
maniji _at_ warsawinternational.net

10

Re: mail not working

You should use the real email address while executing the command, but paste here with fake email address to protect yourself, otherwise you may receive spams.

manikandantgr wrote:

postmap: dict_mysql_lookup: retrieved 1 rows
maniji _at_ warsawinternational.net

It returns correct value. Could you please do this command again and paste output here:

# cd /etc/postfix/mysql/
# postmap -v -q maniji@xxx.net mysql:./sender_login_maps.cf

11

Re: mail not working

oh thank you for your valuable advise,

[root@mail mysql]# postmap -v -q maniji@xxx.net mysql:./sender_login_maps.cf
postmap: dict_eval: const  mail
postmap: dict_eval: const  ipv4
postmap: dict_eval: const 
postmap: dict_eval: const 
postmap: dict_eval: const 
postmap: name_mask: ipv4
postmap: dict_eval: const  mail.xxx.net
postmap: dict_eval: const  xxx.net
postmap: dict_eval: const  Postfix
postmap: dict_eval: expand ${multi_instance_name:postfix}${multi_instance_name?$multi_instance_name} -> postfix
postmap: dict_eval: const  postfix
postmap: dict_eval: const  postdrop
postmap: dict_eval: expand $myhostname, localhost, localhost.localdomain, localhost.$myhostname -> mail.warsawinternational.net, localhost, localhost.localdomain, localhost.mail.warsawinternational.net
postmap: dict_eval: const  mail.xxx.net
postmap: dict_eval: const 
postmap: dict_eval: const  /usr/libexec/postfix
postmap: dict_eval: const  /var/lib/postfix
postmap: dict_eval: const  /usr/sbin
postmap: dict_eval: const  /var/spool/postfix
postmap: dict_eval: const  pid
postmap: dict_eval: const  all
postmap: dict_eval: const 
postmap: dict_eval: const  double-bounce
postmap: dict_eval: const  nobody
postmap: dict_eval: const  hash:/etc/postfix/aliases
postmap: dict_eval: const  20100319
postmap: dict_eval: const  2.6.6
postmap: dict_eval: const  hash
postmap: dict_eval: const  deferred, defer
postmap: dict_eval: const  +
postmap: dict_eval: expand $mydestination, proxy:mysql:/etc/postfix/mysql/relay_domains.cf -> mail.xxx.net, localhost, localhost.localdomain, localhost.mail.xxx.net, proxy:mysql:/etc/postfix/mysql/relay_domains.cf
postmap: dict_eval: expand $relay_domains -> mail.xxx.net, localhost, localhost.localdomain, localhost.mail.xxx.net, proxy:mysql:/etc/postfix/mysql/relay_domains.cf
postmap: dict_eval: const  TZ MAIL_CONFIG LANG
postmap: dict_eval: const  MAIL_CONFIG MAIL_DEBUG MAIL_LOGTAG TZ XAUTHORITY DISPLAY LANG=C
postmap: dict_eval: const  subnet
postmap: dict_eval: const 
postmap: dict_eval: const  +=
postmap: dict_eval: const  -=+
postmap: dict_eval: const  debug_peer_list,fast_flush_domains,mynetworks,permit_mx_backup_networks,qmqpd_authorized_clients,relay_domains,smtpd_access_maps
postmap: dict_eval: const 
postmap: dict_eval: const  bounce
postmap: dict_eval: const  cleanup
postmap: dict_eval: const  defer
postmap: dict_eval: const  pickup
postmap: dict_eval: const  qmgr
postmap: dict_eval: const  rewrite
postmap: dict_eval: const  showq
postmap: dict_eval: const  error
postmap: dict_eval: const  flush
postmap: dict_eval: const  verify
postmap: dict_eval: const  trace
postmap: dict_eval: const  proxymap
postmap: dict_eval: const  proxywrite
postmap: dict_eval: const 
postmap: dict_eval: const 
postmap: dict_eval: const  15728640
postmap: dict_eval: const  2
postmap: dict_eval: const  100s
postmap: dict_eval: const  100s
postmap: dict_eval: const  100s
postmap: dict_eval: const  100s
postmap: dict_eval: const  3600s
postmap: dict_eval: const  3600s
postmap: dict_eval: const  5s
postmap: dict_eval: const  5s
postmap: dict_eval: const  1000s
postmap: dict_eval: const  1000s
postmap: dict_eval: const  10s
postmap: dict_eval: const  10s
postmap: dict_eval: const  1s
postmap: dict_eval: const  1s
postmap: dict_eval: const  1s
postmap: dict_eval: const  1s
postmap: dict_eval: const  500s
postmap: dict_eval: const  500s
postmap: dict_eval: const  18000s
postmap: dict_eval: const  18000s
postmap: dict_eval: const  1s
postmap: dict_eval: const  1s
postmap: dict_eval: const  127.0.0.0/8
postmap: inet_addr_local: configured 3 IPv4 addresses
postmap: cfg_get_str: ./sender_login_maps.cf: user = vmail
postmap: cfg_get_str: ./sender_login_maps.cf: password = xxx
postmap: cfg_get_str: ./sender_login_maps.cf: dbname = vmail
postmap: cfg_get_str: ./sender_login_maps.cf: result_format = %s
postmap: cfg_get_int: ./sender_login_maps.cf: expansion_limit = 0
postmap: cfg_get_str: ./sender_login_maps.cf: query = SELECT mailbox.username FROM mailbox,domain WHERE mailbox.username='%s' AND mailbox.domain='%d' AND mailbox.domain=domain.domain AND mailbox.enablesmtp=1 AND mailbox.active=1 AND domain.backupmx=0 AND domain.active=1
postmap: cfg_get_str: ./sender_login_maps.cf: domain =
postmap: cfg_get_str: ./sender_login_maps.cf: hosts = 127.0.0.1
postmap: dict_open: mysql:./sender_login_maps.cf
postmap: dict_mysql_get_active: attempting to connect to host 127.0.0.1
postmap: dict_mysql: successful connection to host 127.0.0.1
postmap: dict_mysql: successful query from host 127.0.0.1
postmap: dict_mysql_lookup: retrieved 0 rows

if i send any mail to maniji@xxx.net, i get error msg "user unknown in virtual mailbox table"
and also i can't get any mail

12

Re: mail not working

why did not receive any mail from domain?

13

Re: mail not working

Well, seems you didn't use real email address in commands again. Please try this:

# cd /etc/postfix/mysql/
# for cf in $(ls *.cf); do echo ${cf}; postmap -q maniji@warsawinternational.net mysql:./${cf}; done

14

Re: mail not working

thank for your quick reply, i used only real email address.
[root@localhost mysql]# for cf in $(ls *.cf); do echo ${cf}; postmap -q maniji@warsawinternational.net mysql:./${cf}; done
catchall_maps.cf
domain_alias_catchall_maps.cf
domain_alias_maps.cf
recipient_bcc_maps_domain.cf
recipient_bcc_maps_user.cf
relay_domains.cf
sender_bcc_maps_domain.cf
sender_bcc_maps_user.cf
sender_login_maps.cf
transport_maps_domain.cf
transport_maps_user.cf
virtual_alias_maps.cf
virtual_mailbox_domains.cf
virtual_mailbox_maps.cf

why didn't any mail?? kindly answer me

15

Re: mail not working

Well, something wrong in your SQL database. Please show me output of below MySQL command:

mysql> USE vmail;
mysql> SELECT * FROM mailbox WHERE username='maniji@warsawinternational.net' \G;
mysql> SELECT * FROM alias WHERE address='maniji@warsawinternational.net' \G;

16

Re: mail not working

sorry, admin and maniji id are available in mailserver but added admin id only in mailserver, i was just sent mail from admin id to maniji id andalso i am not taking any mail from domain for admin id (mail not fetching) why?

17

Re: mail not working

manikandantgr wrote:

sorry, admin and maniji id are available in mailserver but added admin id only in mailserver, i was just sent mail from admin id to maniji id andalso i am not taking any mail from domain for admin id (mail not fetching) why?

Sorry, what do you mean "admin and maniji id"? If you don't have mail users created in SQL/LDAP database, you cannot send mail to them.

You can create mail user with iRedAdmin (either open source edition or Pro edition): httpS://[your_server]/iredadmin/

18

Re: mail not working

i already created mail user(admin@warsawinternational.net) using iredadmin. this mail user didn't fetch any mail from domain? but i can send mail to other such as gmail,yahoo etc..

19

Re: mail not working

manikandantgr wrote:

i already created mail user(admin@warsawinternational.net) using iredadmin. this mail user didn't fetch any mail from domain? but i can send mail to other such as gmail,yahoo etc..

What do you mean "didn't fetch any mail from domain"?
Do you mean you cannot send mail to admin@warsawinternational.net from Gmail/Yahoo/Hotmail/etc? Any related log in Postfix log file?

20

Re: mail not working

yes i can't receive any mail to admin@warsawinternational.net from gmail/yahoo/hotmail/etc


[root@mailserver Desktop]# tail -f /var/log/maillog
Mar 30 16:17:52 mailserver amavis[2499]: Found decoder for    .exe  at /usr/bin/arj
Mar 30 16:17:52 mailserver amavis[2499]: Using primary internal av scanner code for ClamAV-clamd
Mar 30 16:17:52 mailserver amavis[2499]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
Mar 30 16:17:52 mailserver amavis[2499]: Creating db in /var/spool/amavisd/db/; BerkeleyDB 0.43, libdb 4.7
Mar 30 16:17:53 mailserver postfix/postfix-script[2578]: warning: /var/spool/postfix/etc/hosts and /etc/hosts differ
Mar 30 16:17:53 mailserver postfix/postfix-script[2583]: starting the Postfix mail system
Mar 30 16:17:53 mailserver postfix/master[2584]: daemon started -- version 2.6.6, configuration /etc/postfix
Mar 30 16:17:58 mailserver policyd: starting policyd v1.82
Mar 30 16:17:59 mailserver policyd: connecting to mysql database: 127.0.0.1
Mar 30 16:17:59 mailserver policyd: connected..

[root@mailserver Desktop]# tail -f /var/log/dovecot.log
Mar 30 16:31:25 imap(admin@warsawinternational.net): Info: Disconnected: Logged out bytes=50/410
Mar 30 16:31:25 imap(admin@warsawinternational.net): Info: Disconnected: Logged out bytes=233/876
Mar 30 16:31:39 imap-login: Info: Login: user=<admin@warsawinternational.net>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3477, secured
Mar 30 16:31:39 imap(admin@warsawinternational.net): Info: Disconnected: Logged out bytes=272/1243
Mar 30 16:32:39 imap-login: Info: Login: user=<admin@warsawinternational.net>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3481, secured
Mar 30 16:32:39 imap(admin@warsawinternational.net): Info: Disconnected: Logged out bytes=272/1243
Mar 30 16:33:39 imap-login: Info: Login: user=<admin@warsawinternational.net>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3485, secured
Mar 30 16:33:39 imap(admin@warsawinternational.net): Info: Disconnected: Logged out bytes=272/1243
Mar 30 16:34:39 imap-login: Info: Login: user=<admin@warsawinternational.net>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3487, secured
Mar 30 16:34:39 imap(admin@warsawinternational.net): Info: Disconnected: Logged out bytes=272/1243
thank you for your quick response

21

Re: mail not working

manikandantgr wrote:

Mar 30 16:17:53 mailserver postfix/postfix-script[2578]: warning: /var/spool/postfix/etc/hosts and /etc/hosts differ

You can fix this warning by copy /etc/hosts to /var/spool/postfix/etc/hosts.

And pasted log doesn't show related log when you sent mail from Gmail/Hotmail/Yahoo/etc to your admin@.

22

Re: mail not working

yes i fixed it but again mail is not received yet. i can send mail. plz guide me   

[root@mail Desktop]# tail -f /var/log/maillog
Apr  2 09:24:35 mail roundcube: User admin@warsawinternational.net [192.168.1.231]; Message for manikandantgr@gmail.com; 250: 2.0.0 Ok: queued as DE0E1640321
Apr  2 09:24:35 mail postfix/smtpd[4356]: disconnect from localhost[127.0.0.1]
Apr  2 09:24:41 mail postfix/smtpd[4391]: connect from localhost[127.0.0.1]
Apr  2 09:24:41 mail postfix/smtpd[4391]: 69E8C640326: client=localhost[127.0.0.1]
Apr  2 09:24:41 mail postfix/cleanup[4368]: 69E8C640326: message-id=<b368c3ef5483500a5133aa3e2df44c56@warsawinternational.net>
Apr  2 09:24:41 mail postfix/qmgr[2661]: 69E8C640326: from=<admin@warsawinternational.net>, size=1575, nrcpt=1 (queue active)
Apr  2 09:24:41 mail postfix/smtpd[4391]: disconnect from localhost[127.0.0.1]
Apr  2 09:24:41 mail amavis[2918]: (02918-01) Passed CLEAN, MYNETS/MYUSERS LOCAL [127.0.0.1] [127.0.0.1] <admin@warsawinternational.net> -> <manikandantgr@gmail.com>, Message-ID: <b368c3ef5483500a5133aa3e2df44c56@warsawinternational.net>, mail_id: Oy7exn1cApxK, Hits: -8.451, size: 588, queued_as: 69E8C640326, 6568 ms
Apr  2 09:24:41 mail postfix/smtp[4372]: DE0E1640321: to=<manikandantgr@gmail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=7, delays=0.32/0.01/0.01/6.6, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 69E8C640326)
Apr  2 09:24:41 mail postfix/qmgr[2661]: DE0E1640321: removed
Apr  2 09:24:44 mail postfix/smtp[4393]: 69E8C640326: to=<manikandantgr@gmail.com>, relay=gmail-smtp-in.l.google.com[173.194.79.26]:25, delay=3.4, delays=0.16/0.01/1.2/2, dsn=2.0.0, status=sent (250 2.0.0 OK 1364874901 hi1si390810pac.203 - gsmtp)
Apr  2 09:24:44 mail postfix/qmgr[2661]: 69E8C640326: removed

23

Re: mail not working

Could you post related log about receiving email in /var/log/maillog?

24

Re: mail not working

pls check

[root@mail Desktop]# tail -f /var/log/maillog

Apr  2 10:22:31 mail postfix/qmgr[2661]: D5420640341: removed
Apr  2 10:22:37 mail postfix/smtp[5837]: AD1DB640344: to=<root@localhost.warsawinternational.net>, relay=none, delay=5.5, delays=0.07/0.01/5.5/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=localhost.warsawinternational.net type=A: Host not found, try again)
Apr  2 10:31:14 mail postfix/qmgr[2661]: AD1DB640344: from=<user@localhost.warsawinternational.net>, size=16631, nrcpt=1 (queue active)
Apr  2 10:31:15 mail postfix/smtp[5923]: AD1DB640344: to=<root@localhost.warsawinternational.net>, relay=none, delay=524, delays=523/0.03/0.74/0, dsn=5.4.6, status=bounced (mail for localhost.warsawinternational.net loops back to myself)
Apr  2 10:31:15 mail postfix/cleanup[5925]: 8A16B640346: message-id=<20130402050115.8A16B640346@mail.warsawinternational.net>
Apr  2 10:31:15 mail postfix/bounce[5924]: AD1DB640344: sender non-delivery notification: 8A16B640346
Apr  2 10:31:15 mail postfix/qmgr[2661]: 8A16B640346: from=<>, size=18803, nrcpt=1 (queue active)
Apr  2 10:31:15 mail postfix/qmgr[2661]: AD1DB640344: removed
Apr  2 10:31:16 mail postfix/smtp[5923]: 8A16B640346: to=<user@localhost.warsawinternational.net>, relay=none, delay=0.5, delays=0.07/0/0.43/0, dsn=5.4.6, status=bounced (mail for localhost.warsawinternational.net loops back to myself)
Apr  2 10:31:16 mail postfix/qmgr[2661]: 8A16B640346: removed

25

Re: mail not working

manikandantgr wrote:

Apr  2 10:22:37 mail postfix/smtp[5837]: AD1DB640344: to=<root@localhost.warsawinternational.net>, relay=none, delay=5.5, delays=0.07/0.01/5.5/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=localhost.warsawinternational.net type=A: Host not found, try again)

You should read the log first.