LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can send mail but Not able to receive mail. Postfixadmin, dovecot, postfix setup (http://www.linuxquestions.org/questions/linux-newbie-8/can-send-mail-but-not-able-to-receive-mail-postfixadmin-dovecot-postfix-setup-940784/)

RajeshThakur 04-20-2012 01:22 AM

Can send mail but Not able to receive mail. Postfixadmin, dovecot, postfix setup
 
Hi,

I have configured postfixadmin for virtual user as per http://www.campworld.net/thewiki/pmw...VirtMailServer

I am able to send mail but cannot received.

Also the log does'nt show any error which is helpful,

Apr 19 13:39:00 mail dovecot: imap-login: Login: user=<user@domain.com>, method=PLAIN, rip=::ffff:192.168.0.5, lip=::ffff:192.168.0.5, secured
Apr 19 13:38:58 mail dovecot: IMAP(user@domain.com): Disconnected: Logged out


Rajesh

acid_kewpie 04-20-2012 04:10 AM

can define what you actually mean and know by "recieved"? is this smtp level or are you expecting the imap leg of the process to also be covered here? is postfix suitably configured to listen to wherever incoming mail would come from? config files would help.

RajeshThakur 04-20-2012 04:48 AM

Can send mail but Not able to receive mail. Postfixadmin, dovecot, postfix setup
 
Quote:

Originally Posted by acid_kewpie (Post 4658144)
can define what you actually mean and know by "recieved"? is this smtp level or are you expecting the imap leg of the process to also be covered here? is postfix suitably configured to listen to wherever incoming mail would come from? config files would help.


Please find MY Postfix config

[root@host ~]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
delay_warning_time = 4
disable_vrfy_command = yes
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = domain.com (real domain)
myhostname = host.domain.com
mynetworks = 192.168.0.0/16, 127.0.0.0/24, 69.239.170.72/29
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.2.2/README_FILES
recipient_delimiter = +
relay_domains = $mydestination
sample_directory = /usr/share/doc/postfix-2.2.2/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_non_fqdn_hostname
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_non_fqdn_recipient, reject_unknown_recipient_domain
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = reject_non_fqdn_sender, reject_unknown_sender_domain
smtpd_tls_CAfile = /etc/postfix/ssl/smtpd.pem
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.pem
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_alias_maps.cf, regexp:/etc/postfix/virtual_regexp
virtual_gid_maps = static:89
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_domains_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailbox_maps.cf
virtual_minimum_uid = 89
virtual_transport = virtual
virtual_uid_maps = static:89


I have configure gmail id mailbox and fetchmail in postfixadmin and am sending mail to myself from webmail, the same is received on gmail id userx@gmail.com but not on my locally hosted mailserver.



Rajesh

acid_kewpie 04-20-2012 06:34 AM

fetchmail? Where did that come into the equation from?? Again, what *specific* piece of this is not working? If fetchmail is now hurled into the equation, what happens when it runs? how is that configured?

RajeshThakur 04-20-2012 07:46 AM

Quote:

Originally Posted by acid_kewpie (Post 4658227)
fetchmail? Where did that come into the equation from?? Again, what *specific* piece of this is not working? If fetchmail is now hurled into the equation, what happens when it runs? how is that configured?

Hi,

According to the link http://www.campworld.net/thewiki/pmw...VirtMailServer

In postfixadmin menu domain name, mailbox, fetchmail

Admin List
Admin List
New Admin
Domain List
Domain List
New Domain
Virtual List
Virtual List
Add Mailbox
Add Alias
Add Alias Domain
Fetch Email
Fetch Email
New entry
Send Email
Send Email
Broadcast message
Password
Backup
View Log
Logout

I have setup the domain name and mailbox and also configure fetchmail to pull mail from gmail id.


Fetch Email
Mailbox: user@gmail.com Local mailbox
Server: pop.gmail.com Remote Server
Auth Type: any Mostly 'password'
User: user@gmail.com Remote User
Password: passwd Remote Password
Folder: Remote Folder
Poll: 10 Poll every ... minutes
Fetch All: Retrieve both old (seen) and new messages
Keep: yes Keep retrieved messages on the remote mailserver
Protocol: pop Protocol to use
SSL active: yes SSL encryption




Rajesh

acid_kewpie 04-20-2012 07:48 AM

I've zero knowledge of this admin panel, so I can't help you if that's the only interaction you're having with it. if you run fetchmail, what actually happens?

RajeshThakur 04-20-2012 08:03 AM

Quote:

Originally Posted by acid_kewpie (Post 4658283)
I've zero knowledge of this admin panel, so I can't help you if that's the only interaction you're having with it. if you run fetchmail, what actually happens?

Thanks for info,

Can u pls guide me,

I have to setup a local mail server with multiple domain names like gmail.com, hotmail.com and example.com.

User will login thru webmail locally and send receive emails.

All Mails of all domain will be on local mail server.


Rajesh

acid_kewpie 04-20-2012 08:05 AM

I can't "guide" you. I've asked you to investigate fetchmail, which appears to be the right thing to do based on what you're attempting to describe. If you are refusing to do that, I can't help you.

RajeshThakur 04-20-2012 08:27 AM

Quote:

Originally Posted by acid_kewpie (Post 4658293)
I can't "guide" you. I've asked you to investigate fetchmail, which appears to be the right thing to do based on what you're attempting to describe. If you are refusing to do that, I can't help you.

Ok will try to do that.

But as you can see, according to the link http://www.campworld.net/thewiki/pmw...VirtMailServer

there is nothing mention of fetchmail install or configuration in this article.


Rajesh

acid_kewpie 04-20-2012 08:31 AM

WTF?? **YOU** mentioned fetchmail in the first place! :confused: :rolleyes:


All times are GMT -5. The time now is 10:51 PM.