Mail server

 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications Mail server
# 8  
Old 12-18-2014
I use Ubuntu 12.04.2 LTS


Code:
; <<>> DiG 9.8.1-P1 <<>> vpc2a.wi.zut.edu.pl
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 48313
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;vpc2a.wi.zut.edu.pl.           IN      A

;; AUTHORITY SECTION:
wi.zut.edu.pl.          14400   IN      SOA     dns.wi.tuniv.szczecin.pl. admin.wi.zut.edu.pl. 2014111302 14400 3600 604800 14400

;; Query time: 2 msec
;; SERVER: 192.168.200.2#53(192.168.200.2)
;; WHEN: Thu Dec 18 16:46:44 2014
;; MSG SIZE  rcvd: 101

# 9  
Old 12-19-2014
Quote:
Originally Posted by Budrys
I use Ubuntu 12.04.2 LTS


Code:
; <<>> DiG 9.8.1-P1 <<>> vpc2a.wi.zut.edu.pl

;; QUESTION SECTION:
;vpc2a.wi.zut.edu.pl.           IN      A

Hi,
your Nameserver is unable to resolve vpc2a.wi.zut.edu.pl. This must be fixed before you can use postfix.
A solution could be to enter the ipaddress and the name in the local file
/etc/hosts

But this way I not recommended. Fix your DNS!

Regards,
xabbu
# 10  
Old 12-19-2014
How can I do that.

My server is on virtual machine on uniwersity network.

Mayby I should create postfix for "local" use for my virtual users.
# 11  
Old 12-19-2014
Budrys,

will you accept mails from outside your VM?

Regards
xabbu
# 12  
Old 12-19-2014
I think tahat with VM on my universitys network it's not possible.
# 13  
Old 12-19-2014
Sure it is.

First correct your main.cf to:

Code:
mydestination = vpc2a.wi.zut.edu.pl, , localhost, localhost.localdomain, localhost

and

service postfix restart

Edit /etc/hosts

Code:
IPADDRESS vpc2a.wi.zut.edu.pl

And try again.

Regards
xabbu
# 14  
Old 12-19-2014
main.cf:

Code:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = vpc2a
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = vpc2a.wi.zut.edu.pl, localhost, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

Restarted Postfix.

/etc/hosts:
Code:
127.0.0.1       localhost
127.0.1.1       UBUNTU12.04-LAB UBUNTU12
192.168.200.93  vpc2a.wi.zut.edu.pl




# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Is etc/postfix/virtual is correct:?
Code:
user@vpc2a user

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to send mail using PHP mail function On apache server.?

Hello, I am using centos-6.2 I have apache server,php5 on my system and I want to send mail using sendmail on my system. when I try to send mail from shell that time mail is succesfully sent to respective address() but when I try to send it through webbrowser I am not able to send it.... (1 Reply)
Discussion started by: Kiran ursal
1 Replies

2. UNIX for Advanced & Expert Users

How can I send a mail from my outlook or other mail accounts to UNIX server?

Hi all, I want to send a mail for my business needs from outlook account to an unix server (HP-UX) but I don't send any mail. While I can send from the unix server to my outlook account, I can't send from outlook to unix. How can I achieve this ? How can I send a mail from my outlook or other... (2 Replies)
Discussion started by: igelegin
2 Replies

3. UNIX for Dummies Questions & Answers

Minimal Mail Server Setup for Local Mail Transfer

I am trying to get stored mail out of an old mail client. I figured that the easiest way to do it is with IMAP by logging in with both clients. I can copy the mail to the server from the old mail client, and back down into the new mail client. Rather than using a real mail account on the... (2 Replies)
Discussion started by: nixie
2 Replies

4. UNIX for Advanced & Expert Users

need to configure mail setting to send mail to outlook mail server

i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail. actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies

5. HP-UX

[Solved] How do I configure Unix Mail Server to use another Mail Exchange Server

We have configured our mail unix server and can send out emails automatically from applications running on unix to different people in our company as well as outside our company. However there is an outside client who is not receiving these emails because the settings on their mail server cannot... (4 Replies)
Discussion started by: Tenyhwa
4 Replies

6. UNIX for Advanced & Expert Users

How to relay mail to mail server from Unix ?

Hi, I need to send email notifications from Unix/Linux box to users using mailx. In these Unix/Linux boxes mail is not configured however we are having mail server configured in our LAN. Could you please provide instructions to configure relay in these boxes so that we can relay our mails... (3 Replies)
Discussion started by: sourabhsharma
3 Replies

7. Shell Programming and Scripting

script to read mail on a mail server

Hi All, Is there any way Unix shell script can directly read a mail on a mail server (for eg. abc@xyz.com) and save it as a text file in a unix directory ? Thanks PRKS ---------- Post updated at 08:37 AM ---------- Previous update was at 08:36 AM ---------- I am using ksh (1 Reply)
Discussion started by: PRKS
1 Replies

8. Solaris

identify the mail server for mail command

Hi , I am new to unix , i am using the mail and mailx command to send the mail .How come i will know the my mail command using which server as mail box.. Please help me .. Thanks in advance (1 Reply)
Discussion started by: julirani
1 Replies

9. UNIX for Dummies Questions & Answers

can not send mail from unix server to company/yahoo mail

hi, Gurus, I need some help with sending mail out from my UNIX server: It is running Solaris 2.6 and the sendmail version is 8.8. Output of :/usr/lib/sendmail -d0.1 -bt < /dev/null Version 8.8.8+Sun Compiled with: LOG MATCHGECOS MIME7TO8 MIME8TO7 NAMED_BIND NDBM NETINET ... (5 Replies)
Discussion started by: b5fnpct
5 Replies
Login or Register to Ask a Question